API reference

HandPuppet Class

Extends MonoBehaviour
This class is a visual representation of a rigged hand (typically a skin-mesh renderer) that can move its position/rotation and the rotations of the joints that compose it.
It also can offset the rotations of the individual joints, adapting the provided data to any rig.

Properties

List< HandJointMap > JointMaps[Get]
General getter for the joints of the hand.
float Scale[Get]
Current scale of the represented hand.
JointCollection JointsCache[Get]

Member Functions

void SetJointRotations
( in Quaternion[] jointRotations )
Rotates all the joints in this puppet to the desired pose.
Parameters
jointRotations
Array of rotations to use for the fingers. It must follow the FingersMetaData.HAND_JOINT_IDS order.
void SetRootPose
( in Pose rootPose )
Rotates and Translate the hand Wrist so it aligns with the given pose.
It can apply an offset for when using controllers.
Parameters
rootPose
The Wrist Pose to set this puppet to.
void CopyCachedJoints
( ref HandPose result )
Copies the rotations of all the joints available in the puppet as they are visually presented.
Note that any missing joints are skipped.
Parameters
result
Structure to copy the joints to