- Home /
do rigidbodies fall asleep at the same time?
Does it just appear to me or do rigidbodies in unity fall asleep simultaneously (meaning, that as long as one rigidbody moves still too fast, all rigid bodies are simulated)?
I have a simulation where multiple rigidbodies are in a container. and when the simulation becomes slower, at some point, all rigidbodies stop at once. It happens when there is not much movement left, but since all of them stop exactly in the same frame, it becomes very obvious to the user. I think if the rigidbodies would fall asleep not simultaneously but when each individually is slow enough to sleep, one would not notice it so much.
Is there something I can do to avoid this? I already set the sleep velocity in the physics settings quite low (0.001) but that didn't help.
Answer by markpdolby · Jan 16, 2013 at 11:16 AM
You could try changing some of the settings in the physics settings such as Sleep Velocity, maybe making it a smaller value will make it less noticeable http://docs.unity3d.com/Documentation/Components/class-PhysicsManager.html
Or you could try setting it manually in a script so when it is below a certain velocity it has a random chance of sleeping: http://docs.unity3d.com/Documentation/Components/RigidbodySleeping.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613091023im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D 360 degress platformer example needed 0 Answers
Physics preventing objects to go into sleep? 2 Answers
How to stop rigidbody.sleep() 2 Answers
Rigidbody not sleeping 1 Answer
Floating ragdoll after wakeup 3 Answers