API reference

FingersMetadata Class

This class contains a series of useful fingers-related data structures to be used for optimal calculations without relying in dictionaries.
Since we always assume the hand pose information to be sorted in the HAND_JOINT_IDS order, we can align multiple data structures that follow that convention.

Static Fields

FINGER_TO_JOINT_INDEX : readonly int [][]
This collection is used to convert from Finger id to the list indices of its joint in the HAND_JOINT_IDS list.
Signature
readonly int [][] Oculus.Interaction.Input.FingersMetadata.FINGER_TO_JOINT_INDEX
FINGER_TO_JOINTS : readonly HandJointId [][]
This collection contains the joints of each finger minus the tip in ascending order
Signature
readonly HandJointId [][] Oculus.Interaction.Input.FingersMetadata.FINGER_TO_JOINTS
HAND_JOINT_CAN_SPREAD : readonly bool []
Array order following HAND_JOINT_IDS that indicates if the i joint can spread (rotate around Y).
Should be true for the root of the fingers but Pink and Thumb are special cases
Signature
readonly bool [] Oculus.Interaction.Input.FingersMetadata.HAND_JOINT_CAN_SPREAD
HAND_JOINT_IDS : readonly HandJointId []
Valid identifiers for the i-bone of a hand.
Signature
readonly HandJointId [] Oculus.Interaction.Input.FingersMetadata.HAND_JOINT_IDS
JOINT_TO_FINGER : readonly HandFinger []
Map HandJointId to HandFinger
Signature
readonly HandFinger [] Oculus.Interaction.Input.FingersMetadata.JOINT_TO_FINGER
JOINT_TO_FINGER_INDEX : readonly int []
Map any HandJointId to joint index of each finger, where the joint index starts at 0 (toward wrist) and increments for each joint toward the fingertip.
Signature
readonly int [] Oculus.Interaction.Input.FingersMetadata.JOINT_TO_FINGER_INDEX

Static Methods

DefaultFingersFreedom ()
Signature
static JointFreedom [] Oculus.Interaction.Input.FingersMetadata.DefaultFingersFreedom()
Returns
JointFreedom []
HandJointIdToIndex ( id )
The index within HAND_JOINT_IDS for the given joint
Signature
static int Oculus.Interaction.Input.FingersMetadata.HandJointIdToIndex(HandJointId id)
Parameters
id: HandJointId  The HandJoint to check the id for
Returns
int  An index in HAND_JOINT_IDS or -1 if invalud