SpatialInteractionSourceLocation.SourcePointerPose SpatialInteractionSourceLocation.SourcePointerPose SpatialInteractionSourceLocation.SourcePointerPose SpatialInteractionSourceLocation.SourcePointerPose SpatialInteractionSourceLocation.SourcePointerPose Property

Definition

Gets the pointer pose for a particular spatial interaction source, such as a motion controller, at a given timestamp.

public : SpatialPointerInteractionSourcePose SourcePointerPose { get; }
SpatialPointerInteractionSourcePose SourcePointerPose();
public SpatialPointerInteractionSourcePose SourcePointerPose { get; }
Public ReadOnly Property SourcePointerPose As SpatialPointerInteractionSourcePose
var spatialPointerInteractionSourcePose = spatialInteractionSourceLocation.sourcePointerPose;

Property Value

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

The pointer pose represents the tip of a motion controller pointing forward. This pose is best used to raycast when pointing at UI when you are rendering the controller model itself.

To examine the grip pose of a motion controller, examine the Position and Orientation properties directly on the SpatialInteractionSourceLocation instance.

This property will return null if the specified spatial interaction source does not support pointing (IsPointingSupported is false).

This property can return null, for example, when the spatial interaction source lost position or orientation tracking, in which case SpatialInteractionSourceLocation.Position or Orientation can also be null at the same time.

See also