PhysicsDebugNode.h 602 B

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