mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-22 18:24:34 +00:00
Merge branch 'master' of github.com:erwincoumans/bullet3
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