Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.67 KB

spatialpointerpose_trygetinteractionsourcepose_1162732260.md

File metadata and controls

39 lines (23 loc) · 1.67 KB
-api-id -api-type ms.custom
M:Windows.UI.Input.Spatial.SpatialPointerPose.TryGetInteractionSourcePose(Windows.UI.Input.Spatial.SpatialInteractionSource)
winrt method
19H1

Windows.UI.Input.Spatial.SpatialPointerPose.TryGetInteractionSourcePose

-description

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

-parameters

-param source

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

-returns

The interaction source pointer pose.

-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.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

SpatialInteractionSourceLocation.SourcePointerPose

-examples