Aracılığıyla paylaş


SpatialInteractionSourceLocation.Orientation Property

Definition

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

public:
 property IReference<quaternion> ^ Orientation { IReference<quaternion> ^ get(); };
IReference<quaternion> Orientation();
public System.Nullable<Quaternion> Orientation { get; }
var iReference = spatialInteractionSourceLocation.orientation;
Public ReadOnly Property Orientation As Nullable(Of Quaternion)

Property Value

The orientation.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This orientation is distinct from a motion controller's pointing ray, which points forward from the tip of the controller. The pointing ray for a controller is available through the SourcePointerPose property.

Note that orientation is only available for an interaction source if it can correlated with the specified coordinate system. Motion controllers that do not expose pointer poses do not expose orientation either.

Interactions from interaction sources that do not support pointing should be targeted using gaze, not using the controller as an "air mouse".

Applies to