API reference
API reference
Select your platform
No SDKs available
No versions available

HandData Struct

Transfer struct for storing and communicating raw hand tracking data.
This struct contains one full observation (i.e., tracking frame) of raw tracking data for a single hand. Confidence information (i.e. IHand.GetFingerIsHighConfidence(HandFinger)) is not a part of this data.
Versions of this struct can be provided from a variety of sources, when available, including the Interaction SDK's OpenXR integration. This default implementation is provided for scenarios where the struct isn't defined elsewhere.

Member Functions

Performs first-time setup necessary before using a HandData instance.
Attempting to use an instance without having initialized it will result in null accesses.
Sets the data contained by this struct.
Note that this does not initialize the struct; Init must be called separately and beforehand to avoid errors.
Parameters
joints
The quaternions representing the tracking data meant to be stored in this struct
root
The pose representing the root position and orientation of the represented hand
Retrieves the data contained by this struct.
Note that both Init and SetData(Quaternion[], Pose) must be called on this instance in order for valid data to be retrieved. Calling this method without having called Init will result in null access errors. Calling this method without having called SetData(Quaternion[], Pose) will yield invalid data, such as non-unit-length quaternions in joints .
Parameters
joints
Output parameter; after valid invocation, this array will contain the joint rotation quaternions
root
Output parameter; after valid invocation, this pose will contain the root pose of the tracked hand
Did you find this page helpful?
Thumbs up icon
Thumbs down icon