Class SimulatedHandData
Snapshot of simulated hand data.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class SimulatedHandData
Properties
IsPinching
Declaration
public bool IsPinching { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsTracked
Declaration
public bool IsTracked { get; }
Property Value
Type | Description |
---|---|
Boolean |
Joints
Declaration
public MixedRealityPose[] Joints { get; }
Property Value
Type | Description |
---|---|
MixedRealityPose[] |
Methods
Copy(SimulatedHandData)
Declaration
public void Copy(SimulatedHandData other)
Parameters
Type | Name | Description |
---|---|---|
SimulatedHandData | other |
Update(Boolean, Boolean, SimulatedHandData.HandJointDataGenerator)
Replace the hand data with the given values.
Declaration
public bool Update(bool isTrackedNew, bool isPinchingNew, SimulatedHandData.HandJointDataGenerator generator)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isTrackedNew | True if the hand is currently tracked. |
Boolean | isPinchingNew | True if the hand is in a pinching pose that causes a "Select" action. |
SimulatedHandData.HandJointDataGenerator | generator | Generator function that produces joint positions and rotations. The joint data generator is only used when the hand is tracked. |
Returns
Type | Description |
---|---|
Boolean | True if the hand data has been changed. |
Remarks
The timestamp of the hand data will be the current time, see DateTime.UtcNow.