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

Physics objects never sleep due to activation state setting #240

Open
jeybee opened this issue Jan 19, 2022 · 2 comments
Open

Physics objects never sleep due to activation state setting #240

jeybee opened this issue Jan 19, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jeybee
Copy link

jeybee commented Jan 19, 2022

Bullet isn't able to sleep any physics objects as would be performant because any object with a mass > 0 is being set to never be deactivated.

if (mass > 0 || disableDeactivation) rigidBody.setActivationState(4) // Disable deactivation

I have personally altered my version to the below, but it took a while to figure out why this was happening.

if (disableDeactivation) rigidBody.setActivationState(4); // Disable deactivation else rigidBody.setActivationState(1);

@yandeu yandeu added enhancement New feature or request help wanted Extra attention is needed labels Mar 19, 2022
@github-actions
Copy link

This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jan 14, 2023
@yandeu yandeu removed the Stale label Jan 14, 2023
Copy link

This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Nov 11, 2023
@yandeu yandeu removed the Stale label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants