HolographicQuadLayerUpdateParameters.UpdateLocationWithStationaryMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the center location of this quad layer in the world, setting it to remain at that world location in future frames.
public:
virtual void UpdateLocationWithStationaryMode(SpatialCoordinateSystem ^ coordinateSystem, float3 position, quaternion orientation) = UpdateLocationWithStationaryMode;
void UpdateLocationWithStationaryMode(SpatialCoordinateSystem const& coordinateSystem, float3 const& position, quaternion const& orientation);
public void UpdateLocationWithStationaryMode(SpatialCoordinateSystem coordinateSystem, Vector3 position, Quaternion orientation);
function updateLocationWithStationaryMode(coordinateSystem, position, orientation)
Public Sub UpdateLocationWithStationaryMode (coordinateSystem As SpatialCoordinateSystem, position As Vector3, orientation As Quaternion)
Parameters
- coordinateSystem
- SpatialCoordinateSystem
The reference SpatialCoordinateSystem object.
A point for the center of the quad plane, specified relative to the origin of the reference coordinate system.
- orientation
-
Quaternion
Quaternion
quaternion
A rotation for the normal of the quad plane, specified relative to the neutral orientation of the reference coordinate system.
Remarks
For a stationary quad, the app calls UpdateLocationWithStationaryMode to specify the spatial position and orientation in the world at which a quad layer should appear.
Stationary quads will continue to be rendered in the same place if their position is not changed, as if placed in a stationary frame of reference. To keep a quad more strongly anchored, for example to a spatial anchor or stage, the app must also update its location whenever that coordinate system adjusts. For apps with anchored content, it will likely be most straightforward to just update each quad’s location each frame.
You must also call UpdateExtents to specify the width and height of the quad layer, centered around this point.