public static void ScaleEnd(Transform parent, ResetableRigidbody[] resetables, bool isKinematicAfter = false)
 {
     PhysicsRigUtils.ResetRigTransform(resetables, false);
     PhysicsRigUtils.FixChildJointsAfterScalingParent(parent);
     PhysicsRigUtils.ResetRigTransform(resetables, false, true);
     PhysicsRigUtils.ToggleRigKinematic(resetables, isKinematicAfter);
 }
示例#2
0
 public void FixChildJoints()
 {
     PhysicsRigUtils.FixChildJointsAfterScalingParent(transform);
 }