SpatialInteractionSourceProperties 类

定义

表示手部或运动控制器的高级状态。

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
继承
Object Platform::Object IInspectable SpatialInteractionSourceProperties
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)

属性

SourceLossRisk

获取手部或运动控制器的检测将作为值从 0.0 到 1.0 丢失的风险。

方法

TryGetLocation(SpatialCoordinateSystem)

获取用指定坐标系表示的手部或运动控制器的位置、方向和速度。

TryGetSourceLossMitigationDirection(SpatialCoordinateSystem)

获取用户移动其手部或运动控制器(如果其靠近检测区域边缘)的方向。

适用于

另请参阅