-api-id | -api-type | ms.custom |
---|---|---|
M:Windows.UI.Input.Spatial.SpatialPointerPose.TryGetInteractionSourcePose(Windows.UI.Input.Spatial.SpatialInteractionSource) |
winrt method |
19H1 |
Gets the pointer pose for a particular spatial interaction source, such as a motion controller, at a given timestamp.
The spatial interaction source for which a pointer pose should be determined.
The interaction source pointer pose.
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.