StaticCollisionNode.h 701 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
  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/resource/Forward.h>
  8. #include <anki/physics/Forward.h>
  9. namespace anki
  10. {
  11. /// @addtogroup scene
  12. /// @{
  13. /// Node that interacts with physics.
  14. class StaticCollisionNode : public SceneNode
  15. {
  16. public:
  17. StaticCollisionNode(SceneGraph* scene);
  18. ~StaticCollisionNode();
  19. ANKI_USE_RESULT Error create(const CString& name,
  20. const CString& resourceFname,
  21. const Transform& transform);
  22. private:
  23. CollisionResourcePtr m_rsrc;
  24. PhysicsBodyPtr m_body;
  25. };
  26. /// @}
  27. } // end namespace anki