2
0

PhysicsDebugNode.h 602 B

12345678910111213141516171819202122232425262728
  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. #pragma once
  6. #include <AnKi/Scene/SceneNode.h>
  7. #include <AnKi/Scene/DebugDrawer.h>
  8. namespace anki
  9. {
  10. /// An always visible node that debug draws primitives of the physics world.
  11. class PhysicsDebugNode : public SceneNode
  12. {
  13. public:
  14. PhysicsDebugNode(SceneGraph* scene, CString name);
  15. ~PhysicsDebugNode();
  16. private:
  17. PhysicsDebugDrawer m_physDbgDrawer;
  18. void draw(RenderQueueDrawContext& ctx);
  19. };
  20. } // end namespace anki