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);
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.
enable3d/packages/ammoPhysics/src/physics.ts
Line 991 in 2f1e28d
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);