SpatialPointerPose.TryGetInteractionSourcePose(SpatialInteractionSource) SpatialPointerPose.TryGetInteractionSourcePose(SpatialInteractionSource) SpatialPointerPose.TryGetInteractionSourcePose(SpatialInteractionSource) SpatialPointerPose.TryGetInteractionSourcePose(SpatialInteractionSource) SpatialPointerPose.TryGetInteractionSourcePose(SpatialInteractionSource) Method

Definition

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

public : SpatialPointerInteractionSourcePose TryGetInteractionSourcePose(SpatialInteractionSource source)
SpatialPointerInteractionSourcePose TryGetInteractionSourcePose(SpatialInteractionSource source) const;
public SpatialPointerInteractionSourcePose TryGetInteractionSourcePose(SpatialInteractionSource source)
Public Function TryGetInteractionSourcePose(source As SpatialInteractionSource) As SpatialPointerInteractionSourcePose
var spatialPointerInteractionSourcePose = spatialPointerPose.tryGetInteractionSourcePose(source);

Parameters

source
SpatialInteractionSource SpatialInteractionSource SpatialInteractionSource

The spatial interaction source for which a pointer pose should be determined.

Returns

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

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 a SpatialInteractionSourceLocation instance, available from SpatialInteractionSourceState.Properties.@Windows.UI.Input.Spatial.SpatialInteractionSourceProperties.TryGetLocation(Windows.Perception.Spatial.SpatialCoordinateSystem)?text=TryGetLocation.

This method will return null if the specified spatial interaction source does not support pointing (IsPointingSupported is false) or if the source did not have positional tracking at that moment.

See also