Fix: The debug lines of Physics Debug Visualization were drawn incorrectly when using overlay scenes (it was using the wrong camera)

This commit is contained in:
Erwin Coumans
2009-03-09 05:01:16 +00:00
parent abb338ddf9
commit 6e85d00055
7 changed files with 31 additions and 6 deletions

View File

@@ -563,6 +563,11 @@ void CcdPhysicsEnvironment::beginFrame()
}
void CcdPhysicsEnvironment::debugDrawWorld()
{
if (m_dynamicsWorld->getDebugDrawer() && m_dynamicsWorld->getDebugDrawer()->getDebugMode() >0)
m_dynamicsWorld->debugDrawWorld();
}
bool CcdPhysicsEnvironment::proceedDeltaTime(double curTime,float timeStep)
{
@@ -599,9 +604,6 @@ bool CcdPhysicsEnvironment::proceedDeltaTime(double curTime,float timeStep)
veh->SyncWheels();
}
if (m_dynamicsWorld->getDebugDrawer() && m_dynamicsWorld->getDebugDrawer()->getDebugMode() >0)
m_dynamicsWorld->debugDrawWorld();
CallbackTriggers();