dimforge / bevy_rapier

Official Rapier plugin for the Bevy game engine.
https://rapier.rs
Apache License 2.0
1.28k stars 259 forks source link

Modifying gravity doesn't wake sleeping colliders #570

Open rparrett opened 4 months ago

rparrett commented 4 months ago

To repro:

And observe the rigidbody floating mid-air.

Vrixyz commented 4 months ago

We should consider performance when tackling this, if we have a lot of objects, but change gravity to be only slighty more powerful, chances are we don't want to wake up all our tiny objects (and most likely just not wake up anything at all.

I wouldn't mind a wake_up_all_rigibodies() function, but this needs to be explicit in my opinion.