When creating a world in Box2D you have the option to enable bodies to sleep (no simulation is done on them if they come to rest). Why isn't sleeping the default option? What disadvantages does it have?
In my experience, at least in other physics engines, sleeping when coming to rest is the default behavior. The main reason I can think of not to have bodies sleep is that once they are sleeping they will only be woken by a collision. That is, if you were to remove whatever is under the sleeping object, it would not fall, but rather remain frozen in the air until something collides with it and causes it to respond to gravity again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With