HandPose
()
| |
HandPose
(
handedness
)
|
A basic handedness-setting constructor for HandPoses.
This is a convenience method equivalent to invoking HandPose.HandPose, then setting handedness as the Handedness of the newly-created instance.
Signature
Oculus.Interaction.HandGrab.HandPose.HandPose(Handedness handedness) Parameters |
HandPose
(
other
)
|
A basic copy constructor for HandPoses.
This is a convenience method equivalent to invoking HandPose.HandPose, then passing other and false to CopyFrom(HandPose, bool) on the newly-created instance.
Signature
Oculus.Interaction.HandGrab.HandPose.HandPose(HandPose other) |
FingersFreedom
: JointFreedom []
[Get] |
Indicates which fingers can be locked, constrained, or free in this hand pose.
Fingers in this data are represented at their index in the HandFinger enum.
Signature
JointFreedom [] Oculus.Interaction.HandGrab.HandPose.FingersFreedom |
Handedness
: Handedness
[Get][Set] |
The Input.Handedness of the hand represented by the contained pose data.
Signature
Handedness Oculus.Interaction.HandGrab.HandPose.Handedness |
JointRotations
: Quaternion []
[Get][Set] |
The collection of joints and their rotations in this hand.
This data follows the conventions from FingersMetadata.HAND_JOINT_IDS.
Signature
Quaternion [] Oculus.Interaction.HandGrab.HandPose.JointRotations |
CopyFrom
(
from
, mirrorHandedness
)
|
Copies the values over to the hand pose without requiring any new allocations.
This is safe thanks to the flat and predictable way data is stored in JointRotations, FingersFreedom etc. within HandPose instances.
Signature
void Oculus.Interaction.HandGrab.HandPose.CopyFrom(HandPose from, bool mirrorHandedness=false) Parameters mirrorHandedness: bool
Invert the received handedness.
Returns void |
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 Returns void |