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);
 }
Example #2
0
 public void MoveParentToCenterOfChild()
 {
     PhysicsRigUtils.MoveParentToCenterOfChildren(transform);
 }