Fix previous commit, accidently removed some aabbMin/aabbMax assignments.

move margin calculation for aabb before basis transform.
This commit is contained in:
erwin.coumans
2008-09-05 00:26:02 +00:00
parent 4f1a015b41
commit 359c84d3b3
7 changed files with 18 additions and 11 deletions

View File

@@ -1229,8 +1229,8 @@ void DemoApplication::clientResetScene()
myMotionState->m_graphicsWorldTrans = myMotionState->m_startWorldTrans;
colObj->setWorldTransform( myMotionState->m_graphicsWorldTrans );
colObj->setInterpolationWorldTransform( myMotionState->m_startWorldTrans );
//colObj->activate();
colObj->setActivationState(WANTS_DEACTIVATION);
colObj->activate();
//colObj->setActivationState(WANTS_DEACTIVATION);
}
//removed cached contact points
m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(colObj->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher());