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

HandPose Class

Data for the pose of a hand for grabbing an object.
It contains not only the position of the hand and the fingers but other relevant data to the pose like the scale or which fingers are locked.
Even though this class is Serializable it is not a Component. The HandPoseEditor class should be used (in conjunction with the HandGrabInteractableEditor class) to edit the values in the inspector.

Constructors

HandPose ()
Signature
Oculus.Interaction.HandGrab.HandPose.HandPose()
HandPose ( handedness )
Signature
Oculus.Interaction.HandGrab.HandPose.HandPose(Handedness handedness)
Parameters
handedness: Handedness
HandPose ( other )
Signature
Oculus.Interaction.HandGrab.HandPose.HandPose(HandPose other)
Parameters
other: HandPose

Properties

FingersFreedom : JointFreedom[]
[Get]
Indicates which fingers can be locked, constrained or free in this hand pose.
It follows the Hand.HandFinger order for the collection.
Signature
JointFreedom [] Oculus.Interaction.HandGrab.HandPose.FingersFreedom
Handedness : Handedness
[Get][Set]
Handedness of the hand.
Signature
Handedness Oculus.Interaction.HandGrab.HandPose.Handedness
JointRotations : Quaternion[]
[Get][Set]
Collection of joints and their rotations in this hand.
It follows the FingersMetadata.HAND_JOINT_IDS convention
Signature
Quaternion [] Oculus.Interaction.HandGrab.HandPose.JointRotations

Methods

CopyFrom ( from , mirrorHandedness )
Copies the values over to the hand pose without requiring any new allocations.
This is thanks to the fact of the fingers freedom and joints rotations collections being always fixed size and order.
Signature
void Oculus.Interaction.HandGrab.HandPose.CopyFrom(HandPose from, bool mirrorHandedness=false)
Parameters
from: HandPose  The hand pose to copy the values from
mirrorHandedness: bool  Invert the received handedness
Returns
void

Static Methods

Lerp ( from , to , t , result )
Interpolates between two HandPoses, if they have the same handedness and joints.
Signature
static void Oculus.Interaction.HandGrab.HandPose.Lerp(in HandPose from, in HandPose to, float t, ref HandPose result)
Parameters
from: in HandPose  Base HandPose to interpolate from.
to: in HandPose  Target HandPose to interpolate to.
t: float  Interpolation factor, 0 for the base, 1 for the target.
result: ref HandPose  A HandPose positioned/rotated between the base and target.
Returns
void