SpatialInteractionSourceLocation SpatialInteractionSourceLocation SpatialInteractionSourceLocation SpatialInteractionSourceLocation SpatialInteractionSourceLocation Class

Definition

Represents the grip pose and pointer pose of a hand or motion controller.

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

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

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
1607 14393 Orientation
1709 16299 AngularVelocity
1709 16299 PositionAccuracy
1709 16299 SourcePointerPose

Properties

AngularVelocity AngularVelocity AngularVelocity AngularVelocity AngularVelocity

Gets the angular velocity of a hand or motion controller.

Orientation Orientation Orientation Orientation Orientation

Gets the grip pose orientation, representing the orientation of the user's hand as it holds a motion controller.

Position Position Position Position Position

Gets the grip pose position, representing the position of the user's hand, either directly or where it holds a motion controller.

PositionAccuracy PositionAccuracy PositionAccuracy PositionAccuracy PositionAccuracy

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

SourcePointerPose SourcePointerPose SourcePointerPose SourcePointerPose SourcePointerPose

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

Velocity Velocity Velocity Velocity Velocity

Gets the velocity of a hand or motion controller.

See also