MoveComponent.h 676 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2009-2023, 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/Components/SceneComponent.h>
  7. namespace anki {
  8. /// @addtogroup scene
  9. /// @{
  10. /// A simple implicit component that updates the SceneNode's transform.
  11. class MoveComponent : public SceneComponent
  12. {
  13. ANKI_SCENE_COMPONENT(MoveComponent)
  14. public:
  15. MoveComponent(SceneNode* node)
  16. : SceneComponent(node, kClassType)
  17. {
  18. }
  19. ~MoveComponent() = default;
  20. private:
  21. Error update(SceneComponentUpdateInfo& info, Bool& updated) override;
  22. };
  23. /// @}
  24. } // end namespace anki