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

Is there something like a sleepThreshold property? #254

Open
marwie opened this issue Dec 30, 2023 · 0 comments
Open

Is there something like a sleepThreshold property? #254

marwie opened this issue Dec 30, 2023 · 0 comments

Comments

@marwie
Copy link

marwie commented Dec 30, 2023

Hello,

using Rapier 0.11.2 I'm currently trying to understand why my Rigidbodies don't fall asleep (or rather: continuously wakeup)

From reading the changelogs I found that there's something like an activation force for e.g. linvel - this doesn't seem to exist in the javascript API tho.
Is there a way to explictly set a threshold for the rigidbody when to fall asleep?


furthermore setting the translation or rotation on a collider seems to wakeup rigidbodies that are in contact with the collider (even if the collider hasn't changed it's position). When I add an extra check to only call setTranslation if the position has actually changed the Rigidbody does also sleep. Is this expected? Is there a way to prevent having to manually doing this check?
image

@sebcrozet sebcrozet transferred this issue from dimforge/rapier Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant