only use the getInterpolationWorldTransform for objects that are not isStaticOrKinematic

This should solver the issue discussed here: http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=7681
remove some warning
This commit is contained in:
erwin.coumans
2011-12-12 13:33:34 +00:00
parent 76785d6e01
commit 665829bd81
2 changed files with 13 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ void btCollisionWorld::updateSingleAabb(btCollisionObject* colObj)
minAabb -= contactThreshold;
maxAabb += contactThreshold;
if(getDispatchInfo().m_useContinuous && colObj->getInternalType()==btCollisionObject::CO_RIGID_BODY)
if(getDispatchInfo().m_useContinuous && !colObj->isStaticOrKinematicObject())
{
btVector3 minAabb2,maxAabb2;
colObj->getCollisionShape()->getAabb(colObj->getInterpolationWorldTransform(),minAabb2,maxAabb2);
@@ -1457,7 +1457,7 @@ void btCollisionWorld::debugDrawWorld()
btVector3 minAabb2,maxAabb2;
if(colObj->getInternalType()==btCollisionObject::CO_RIGID_BODY)
if(getDispatchInfo().m_useContinuous && !colObj->isStaticOrKinematicObject())
{
colObj->getCollisionShape()->getAabb(colObj->getInterpolationWorldTransform(),minAabb2,maxAabb2);
minAabb2 -= contactThreshold;