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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user