PhysicsDrawer.cpp 510 B

12345678910111213141516171819
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Physics/PhysicsDrawer.h>
  6. #include <AnKi/Physics/PhysicsWorld.h>
  7. namespace anki {
  8. void PhysicsDrawer::drawWorld(const PhysicsWorld& world)
  9. {
  10. btDynamicsWorld& btWorld = const_cast<btDynamicsWorld&>(world.getBtWorld());
  11. btWorld.setDebugDrawer(&m_debugDraw);
  12. btWorld.debugDrawWorld();
  13. }
  14. } // end namespace anki