mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-06-08 08:13:55 +00:00
fixed base should set activation state to 'ISLAND_SLEEPING'
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user