| 123456789101112131415161718192021222324252627282930313233 |
- // Copyright (C) 2009-2023, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Scene/Components/SceneComponent.h>
- namespace anki {
- /// @addtogroup scene
- /// @{
- /// A simple implicit component that updates the SceneNode's transform.
- class MoveComponent : public SceneComponent
- {
- ANKI_SCENE_COMPONENT(MoveComponent)
- public:
- MoveComponent(SceneNode* node)
- : SceneComponent(node, kClassType)
- {
- }
- ~MoveComponent() = default;
- private:
- Error update(SceneComponentUpdateInfo& info, Bool& updated) override;
- };
- /// @}
- } // end namespace anki
|