Skip to content

Commit

Permalink
fixed base should set activation state to 'ISLAND_SLEEPING'
Browse files Browse the repository at this point in the history
  • Loading branch information
erwincoumans committed Apr 23, 2021
1 parent 184b781 commit 46ea89a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,14 @@ void btMultiBodyDynamicsWorld::updateActivationState(btScalar timeStep)
btMultiBodyLinkCollider* col = body->getBaseCollider();
if (col && col->getActivationState() == ACTIVE_TAG)
{
col->setActivationState(WANTS_DEACTIVATION);
if (body->hasFixedBase())
{
col->setActivationState(ISLAND_SLEEPING);
} else
{
col->setActivationState(WANTS_DEACTIVATION);
}

col->setDeactivationTime(0.f);
}
for (int b = 0; b < body->getNumLinks(); b++)
Expand Down

0 comments on commit 46ea89a

Please sign in to comment.