API reference

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.

Methods

GetData ( joints , root )
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 .
Signature
void Oculus.Interaction.Input.Filter.HandData.GetData(ref Quaternion[] joints, out Pose root)
Parameters
joints: ref Quaternion []  Output parameter; after valid invocation, this array will contain the joint rotation quaternions
root: out Pose  Output parameter; after valid invocation, this pose will contain the root pose of the tracked hand
Returns
void
Init ()
Performs first-time setup necessary before using a HandData instance.
Attempting to use an instance without having initialized it will result in null accesses.
Signature
void Oculus.Interaction.Input.Filter.HandData.Init()
Returns
void
SetData ( joints , root )
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.
Signature
void Oculus.Interaction.Input.Filter.HandData.SetData(Quaternion[] joints, Pose root)
Parameters
joints: Quaternion []  The quaternions representing the tracking data meant to be stored in this struct
root: Pose  The pose representing the root position and orientation of the represented hand
Returns
void