| 1234567891011121314151617181920212223242526272829303132333435 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/scene/SceneNode.h>
- #include <anki/Math.h>
- #include <anki/physics/PhysicsPlayerController.h>
- namespace anki
- {
- /// @addtogroup scene
- /// @{
- /// Player scene node. It uses input and physics to move inside the world.
- class PlayerNode : public SceneNode
- {
- friend class PlayerNodeFeedbackComponent;
- public:
- PlayerNode(SceneGraph* scene);
- ~PlayerNode();
- ANKI_USE_RESULT Error create(const CString& name, const Vec4& position);
- private:
- PhysicsPlayerControllerPtr m_player;
- };
- /// @}
- } // end namespace anki
|