Skip to main content

HandGrip.GripFinger

A class in Root.Township, Alta.Character.

One finger of a HandGrip: its configuration and its joints. Thumbs get ThumbGripJoints, other fingers plain GripJoints.

Constructors​

MemberWhat it is
GripFinger()Creates a HandGrip.GripFinger from hand, finger, jointTransforms and rotations.
GripFinger(HandGrip hand, HandGripConfiguration.Finger finger, Transform[] jointTransforms, HandGripConfiguration.RotationSnapshots rotations)Creates a HandGrip.GripFinger from hand, finger, jointTransforms and rotations.

Fields​

2 private and internal fields
MemberWhat it is
private HandGripConfiguration.Finger fingerThe finger's settings from the HandGripConfiguration.
private HandGrip.GripJoint[] jointsThe finger's joints, from the knuckle outwards.

Methods​

MemberWhat it is
void Curl(Matrix4x4 parent)Resets the joints, then curls them step by step (up to 100 steps) until each touches something or reaches its maximum curl.
void LerpToSave(float time, float skeleton, float splaid, bool isSkeletal, bool canGestureGripping)Blends every joint towards its saved grip pose, passing the skeletal input through the finger's correction curve first.
void OnDrawGizmos(Matrix4x4 parent)Draws each joint's box, chained from the given parent matrix.
void Save()Stores each joint's current curl as its grip pose.
void SerializeGrip(Stream stream)Reads or writes each joint's curl step for networking.

Used in​

Members of other types that take, return or hold a GripFinger: