Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying gravity doesn't wake sleeping colliders #570

Open
rparrett opened this issue Jul 23, 2024 · 1 comment
Open

Modifying gravity doesn't wake sleeping colliders #570

rparrett opened this issue Jul 23, 2024 · 1 comment
Labels

Comments

@rparrett
Copy link
Contributor

rparrett commented Jul 23, 2024

To repro:

  • Add a dynamic rigidbody
  • Configure rapier so that gravity is disabled (Vec3::ZERO)
  • Wait for the rigidbody to go to sleep
  • Enable gravity

And observe the rigidbody floating mid-air.

@Vrixyz
Copy link
Contributor

Vrixyz commented Jul 23, 2024

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.

@Vrixyz Vrixyz added C-Enhancement New feature or request D-Easy P-Low A-Integration very bevy specific C-Performance labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants