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

How to update time_since_can_sleep in RigidBodyActivation? #320

Open
foxzool opened this issue Jan 28, 2023 · 1 comment
Open

How to update time_since_can_sleep in RigidBodyActivation? #320

foxzool opened this issue Jan 28, 2023 · 1 comment
Labels
A-Integration very bevy specific C-Enhancement New feature or request D-Medium documentation Improvements or additions to documentation P-Low S-not-started Work has not started

Comments

@foxzool
Copy link

foxzool commented Jan 28, 2023

default_time_until_sleep() 2.0 is too long , I need to set it to more shorter.

@Vrixyz Vrixyz added C-Enhancement New feature or request D-Easy P-High arbitrary important item S-not-started Work has not started A-Integration very bevy specific D-Medium P-Low documentation Improvements or additions to documentation and removed D-Easy P-High arbitrary important item labels May 24, 2024
@Vrixyz
Copy link
Contributor

Vrixyz commented May 24, 2024

You can modify time_until_sleep through activation_mut, but it's per entity.

I'm keeping this open because it's not trivial to discover, and we could provide a way to change the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Integration very bevy specific C-Enhancement New feature or request D-Medium documentation Improvements or additions to documentation P-Low S-not-started Work has not started
Projects
None yet
Development

No branches or pull requests

2 participants