PlayerNode.h 703 B

1234567891011121314151617181920212223242526272829303132333435
  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/Math.h>
  8. #include <anki/physics/PhysicsPlayerController.h>
  9. namespace anki
  10. {
  11. /// @addtogroup scene
  12. /// @{
  13. /// Player scene node. It uses input and physics to move inside the world.
  14. class PlayerNode : public SceneNode
  15. {
  16. friend class PlayerNodeFeedbackComponent;
  17. public:
  18. PlayerNode(SceneGraph* scene);
  19. ~PlayerNode();
  20. ANKI_USE_RESULT Error create(const CString& name, const Vec4& position);
  21. private:
  22. PhysicsPlayerControllerPtr m_player;
  23. };
  24. /// @}
  25. } // end namespace anki