void Start() { Rig = GetComponent <HandRig>(); Nodes = Rig.getNodes(); createGears(); }
public Gear(Transform trans, HandBoneIndex bone, HandRig rig, GearMoving onMoving_) { transform = trans; axis = HandBoneIndices.RotationAxies[(int)bone]; int index = System.Array.IndexOf(HandBoneIndices.RangedAngles, bone); range = rig.Data.RangedAngles[index]; onMoving = onMoving_; }