Ejemplo n.º 1
0
        void Start()
        {
            Rig   = GetComponent <HandRig>();
            Nodes = Rig.getNodes();

            createGears();
        }
Ejemplo n.º 2
0
            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_;
            }