| 12345678910111213141516171819202122 |
- // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <anki/physics/PhysicsDrawer.h>
- #include <anki/physics/PhysicsWorld.h>
- namespace anki
- {
- void PhysicsDrawer::drawWorld(const PhysicsWorld& world)
- {
- auto lock = world.lockBtWorld();
- btDynamicsWorld& btWorld = *const_cast<btDynamicsWorld*>(world.getBtWorld());
- btWorld.setDebugDrawer(&m_debugDraw);
- btWorld.debugDrawWorld();
- }
- } // end namespace anki
|