57 const std::vector<kObjectAnimTrack> &
getTracks()
const;
108 float duration = 0.0f;
109 float ticksPerSecond = 25.0f;
111 std::vector<kObjectAnimTrack> tracks;
kString getName() const
Get the clip name.
Definition kanimation.h:71
float getTicksPerSecond() const
Get the tick rate.
Definition kanimation.h:93
void setSpeed(float s)
Set the playback speed multiplier.
Definition kanimation.h:99
void setName(const kString &n)
Set the clip name.
Definition kanimation.h:66
kAnimation()=default
Construct an empty clip with default duration / tick rate.
float getDuration() const
Get the total clip length in ticks.
Definition kanimation.h:82
const kObjectAnimTrack * findTrack(const kString &uuid) const
Find a track by its target UUID, or nullptr if absent.
const std::vector< kObjectAnimTrack > & getTracks() const
All tracks in this clip.
float getSpeed() const
Get the playback speed multiplier.
Definition kanimation.h:104
void setDuration(float d)
Set the total clip length in ticks.
Definition kanimation.h:77
void setTicksPerSecond(float t)
Set the tick rate used to convert ticks to seconds.
Definition kanimation.h:88
void addTrack(const kObjectAnimTrack &track)
Append a transform track for one target object.
Core type aliases, enumerations, structs, and utility functions used throughout the engine.
Top-level Kemena3D engine namespace.
Definition kanimation.h:23
std::string kString
Standard string alias.
Definition kdatatype.h:42
A single transform track for one target object inside a clip.
Definition kanimation.h:32
std::vector< kKeyRotation > rotations
Rotation channel keyframes.
Definition kanimation.h:35
std::vector< kKeyPosition > positions
Position channel keyframes.
Definition kanimation.h:34
std::vector< kKeyScale > scales
Scale channel keyframes.
Definition kanimation.h:36
kString targetUuid
kObject UUID the track drives.
Definition kanimation.h:33