MasterHand
A class in Root.Township, Alta.Character.
Copies the finger bone rotations of the hand-pose (master) hand onto the character rig's IK hand after the grip updates each frame.
- Listed in Players and characters
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
MasterHand() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private CharacterDummyPointer dummy | Pointer to the character dummy whose rig holds the IK hand. |
private static int[] fingerChildIndex | Child index of each finger under the IK hand root. |
private HandGrip handGrip | The hand grip whose PostLateUpdate drives the copy. |
private BoneIdentifier ikHandRoot | Bone identifier for the IK hand root on the rig. |
private Transform ikHandRootTransform | Backing field for IKHandRoot, resolved in Awake. |
private Transform[] masterHandBones | Master finger bones to copy from. |
private Transform masterHandRoot | Backing field for MasterHandRoot. |
private Dictionary<Transform, Transform> masterToIKMap | Master bone to IK bone lookup built by SetupBonesMap. |
Properties
| Member | What it is |
|---|---|
Transform IKHandRoot { get; } | The rig's IK hand root that rotations are copied to. |
Transform MasterHandRoot { get; } | Root of the master hand whose finger bones are the source. |
Methods
| Member | What it is |
|---|---|
static Transform[] GetFingerBonesFromRoot(Transform root) | Returns a hand root's five finger bones in the game's finger order. |
8 private and internal methods
Used in
Members of other types that take, return or hold a MasterHand: