Dela via


SpatialInteractionSourceProperties Class

Definition

Represents advanced state of a hand or motion controller.

public ref class SpatialInteractionSourceProperties sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialInteractionSourceProperties final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialInteractionSourceProperties
Public NotInheritable Class SpatialInteractionSourceProperties
Inheritance
Object Platform::Object IInspectable SpatialInteractionSourceProperties
Attributes

Windows requirements

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

Properties

SourceLossRisk

Gets the risk that detection of a hand or motion controller will be lost as a value from 0.0 to 1.0.

Methods

TryGetLocation(SpatialCoordinateSystem)

Get the position, orientation and velocity of the hand or motion controller, expressed in the specified coordinate system.

TryGetSourceLossMitigationDirection(SpatialCoordinateSystem)

Gets the direction you should suggest that the user move their hand or motion controller if it is nearing the edge of the detection area.

Applies to

See also