only update aabb of active objects, thanks Peter Tchernev for reporting (http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1764 )

move debug aabb rendering from updateAabb to debugDrawWorld
This commit is contained in:
ejcoumans
2007-12-10 02:18:38 +00:00
parent bf5a4a7d39
commit f1be4ab221
15 changed files with 68 additions and 16 deletions

View File

@@ -369,7 +369,12 @@ void RagdollDemo::clientMoveAndDisplay()
ms = minFPS;
if (m_dynamicsWorld)
{
m_dynamicsWorld->stepSimulation(ms / 1000000.f);
//optional but useful: debug drawing
m_dynamicsWorld->debugDrawWorld();
}
renderme();