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