SpatialInteractionSourceLocation.SourcePointerPose Property

Definition

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

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

Property Value

The interaction source pointer pose.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

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.

Applies to

See also