Exemple #1
0
        public override void FixTransforms()
        {
            if (!initiated)
            {
                return;
            }
            if (IKPositionWeight <= 0f && !isDirty)
            {
                return;
            }

            for (int i = 0; i < spine.Length; i++)
            {
                spine[i].FixTransform();
            }
            for (int i = 0; i < eyes.Length; i++)
            {
                eyes[i].FixTransform();
            }
            if (head != null && head.transform != null)
            {
                head.FixTransform();
            }

            isDirty = false;
        }
 public override void FixTransforms()
 {
     for (int i = 0; i < spine.Length; i++)
     {
         spine[i].FixTransform();
     }
     for (int i = 0; i < eyes.Length; i++)
     {
         eyes[i].FixTransform();
     }
     if (head != null && head.transform != null)
     {
         head.FixTransform();
     }
 }