vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
animation_system.h
1#pragma once
2
3#include "core/system.h"
4
5namespace Vkm::Engine {
6
7struct Animation;
8struct Transform;
9
16class AnimationSystem : public System {
17 public:
18 AnimationSystem() = default;
19 ~AnimationSystem() override = default;
20
21 AnimationSystem(const AnimationSystem& other) = delete;
22 AnimationSystem& operator=(const AnimationSystem& other) = delete;
23
24 AnimationSystem(AnimationSystem && other) = delete;
25 AnimationSystem& operator=(AnimationSystem && other) = delete;
26
27 public:
28 void fixedUpdate(FrameContext& ctx) override;
29
39 static void applyAnimation(const Animation& animation, Transform& transform);
40};
41
42} // namespace Vkm::Engine
void fixedUpdate(FrameContext &ctx) override
Execute this system at the fixed simulation rate.
static void applyAnimation(const Animation &animation, Transform &transform)
Pose transform as animation stands at its playhead.
Component representing an animation that can be applied to an entity.
Definition animation.h:17
Per-frame state bundle passed to every system.
Definition system.h:55
Local position, rotation and scale of an entity.
Definition transform.h:17