PhysicsDrawer.cpp 507 B

1234567891011121314151617181920
  1. // Copyright (C) 2009-2021, 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. {
  9. void PhysicsDrawer::drawWorld(const PhysicsWorld& world)
  10. {
  11. btDynamicsWorld& btWorld = const_cast<btDynamicsWorld&>(world.getBtWorld());
  12. btWorld.setDebugDrawer(&m_debugDraw);
  13. btWorld.debugDrawWorld();
  14. }
  15. } // end namespace anki