6#include <glm/gtc/quaternion.hpp>
8#include "ecs/component/animation/animation_track.h"
10namespace Vkm::Engine {
Keyframes of type T sorted by time, sampled through an easing curve.
Definition animation_track.h:22
float getDuration() const
The track's length.
Definition animation_track.h:183
Component representing an animation that can be applied to an entity.
Definition animation.h:17
float time
Playback head in seconds; session state, unserialized.
Definition animation.h:23
bool started
Whether playOnStart has been honoured this session. Session state.
Definition animation.h:39
float length
Minimum length in seconds (0 = last keyframe)
Definition animation.h:22
bool playing
Session state.
Definition animation.h:36
static float computeDuration(const Animation &animation)
The effective length: the latest keyframe of the three tracks, or length if greater.
Definition animation.h:47
bool playOnStart
Start playing on the first frame the simulation runs.
Definition animation.h:33
float speed
Playback speed multiplier.
Definition animation.h:24