Share via


HolographicQuadLayerUpdateParameters.UpdateLocationWithStationaryMode Method

Definition

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.

position
Vector3 Vector3

float3

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.

Applies to