52 void Update(
float deltaTime)
override;
54 void RegisterClip(
const std::string& name,
const std::shared_ptr<AnimationClip>& clip);
55 void Play(
const std::string& name,
bool loop =
true);
61 glm::vec3 Interpolate(
const std::vector<KeyFrameVec3>& keys,
float time);
62 glm::quat Interpolate(
const std::vector<KeyFrameQuat>& keys,
float time);
67 bool m_looping =
true;
68 bool m_isPlaying =
false;
70 std::unordered_map<std::string, std::shared_ptr<AnimationClip>> m_clips;
71 std::unordered_map<GameObject*, std::unique_ptr<ObjectBinding>> m_bindings;