SpatialPointerInteractionSourcePose SpatialPointerInteractionSourcePose SpatialPointerInteractionSourcePose SpatialPointerInteractionSourcePose SpatialPointerInteractionSourcePose Class

Definition

Represents a motion controller's pointer pose in relation to its surroundings.

public : sealed class SpatialPointerInteractionSourcePose
struct winrt::Windows::UI::Input::Spatial::SpatialPointerInteractionSourcePose
public sealed class SpatialPointerInteractionSourcePose
Public NotInheritable Class SpatialPointerInteractionSourcePose
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

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

Remarks

Windows Mixed Reality supports motion controllers in a variety of form factors, with each controller's design differing in its relationship between the user's hand position and the natural "forward" direction that apps should use for pointing when rendering the controller.

To better represent these controllers, there are two kinds of poses you can investigate for each interaction source.

The grip pose represents the location of either the palm of a hand detected by a HoloLens, or the palm holding a motion controller. On immersive headsets, this pose is best used to render the user's hand or an object held in the user's hand, such as a sword or gun. The grip pose is represented by the position, orientation and velocity properties directly within this type.

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. The pointer pose can be accessed through the SourcePointerPose property.

Version history

Windows version SDK version Value added
1709 16299 Orientation
1709 16299 PositionAccuracy

Properties

ForwardDirection ForwardDirection ForwardDirection ForwardDirection ForwardDirection

Gets the forward direction of the motion controller's pointer pose in the specified coordinate system, as a unit vector.

Orientation Orientation Orientation Orientation Orientation

Gets the orientation of the motion controller's pointer pose in the specified coordinate system.

Position Position Position Position Position

Gets the position of the motion controller's pointer pose in the specified coordinate system.

PositionAccuracy PositionAccuracy PositionAccuracy PositionAccuracy PositionAccuracy

Gets the accuracy of an interaction source's positional tracking.

UpDirection UpDirection UpDirection UpDirection UpDirection

Gets the up direction that orients the motion controller's pointer pose in the specified coordinate system, as a unit vector.

See also