Make rigidbody sleep

Hi All,

I have few rigidbody in my scence and I wonder how can I make rigidBofy sleeping?

according to Unity’s doc rigidBody.Sleep() makes the rigidBody sleep for only one fram and I want as many frame as I want. Is it possible?

If not does making rigidbody kinematic equivalent to sleeping?

Thank u in advance

rigidbody.isKinematic = true;

Will cause your rigidbody to cease calculating. If you set it to true again, it will pick right back up where it left off :slight_smile:

So yes, isKinematic will pause your rigidbdy if that is what you want.

rigidbody.isKinematic = true;
rigidbody.anglarVelocity = Vector3.zero;//try Quaternion.identity if this gives you any issues
rigidbody.velocity = Vector3.zero;

If you want to stop it completely