Example #1
0
 private void AssignMotionType(Transform t, BioIK.MotionType motionType)
 {
     if (t.GetComponent <BioIK.KinematicJoint>() != null)
     {
         t.GetComponent <BioIK.KinematicJoint>().SetMotionType(motionType);
     }
     for (int i = 0; i < t.childCount; i++)
     {
         AssignMotionType(t.GetChild(i), motionType);
     }
 }
Example #2
0
 public void UpdateMotionType()
 {
     MotionType = Dropdown.value == 0 ? BioIK.MotionType.Instantaneous : BioIK.MotionType.Realistic;
     if (Ignore(ModelGO))
     {
         ModelCharacter.MotionType = BioIK.MotionType.Instantaneous;
     }
     else
     {
         ModelCharacter.MotionType = MotionType;
     }
 }
Example #3
0
 public void SetMotionType(int number)
 {
     if (number == 0)
     {
         MotionType = BioIK.MotionType.Instantaneous;
     }
     if (number == 1)
     {
         MotionType = BioIK.MotionType.Realistic;
     }
     if (Model.name == "Robot Kyle Full Body")
     {
         MotionType = BioIK.MotionType.Instantaneous;
     }
     AssignMotionType(Model.transform, MotionType);
 }