Skip to content

Physics objects never sleep due to activation state setting #240

Description

@jeybee

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions