using Vector2.angle()

This commit is contained in:
HENRY Benjamin
2021-06-07 16:41:11 +02:00
52 changed files with 972 additions and 494 deletions
+5 -3
View File
@@ -4,19 +4,21 @@
#pragma once
#include <Component/Renderer/Drawable3DComponent.hpp>
#include "Component/Animation/AnimationsComponent.hpp"
#include "System/System.hpp"
namespace BBM
{
//! @brief A system to handle Animator entities.
class AnimatorSystem : public WAL::System
class AnimatorSystem : public WAL::System<AnimationsComponent, ControllableComponent, Drawable3DComponent>
{
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
void onFixedUpdate(WAL::ViewEntity<AnimationsComponent, ControllableComponent, Drawable3DComponent> &entity) override;
//! @brief A default constructor
AnimatorSystem();
AnimatorSystem(WAL::Wal &wal);
//! @brief An Animator system is copy constructable
AnimatorSystem(const AnimatorSystem &) = default;
//! @brief A default destructor