public static void ScaleStart(Transform parent, ResetableRigidbody[] resetables, Transform scalePivot = null)
 {
     PhysicsRigUtils.ToggleRigKinematic(resetables, true);
     if (scalePivot)
     {
         PhysicsRigUtils.MoveParentToCenterOfTransform(parent, scalePivot);
     }
     else
     {
         PhysicsRigUtils.MoveParentToCenterOfChildren(parent);
     }
     PhysicsRigUtils.CacheRig(resetables);
 }
Esempio n. 2
0
 public void MoveParentToCenterOfChild()
 {
     PhysicsRigUtils.MoveParentToCenterOfChildren(transform);
 }