8#include <glm/gtc/quaternion.hpp>
10#include "resource/resource.h"
11#include "resource/resource_handle.h"
13namespace Vkm::Engine {
69 std::vector<float> positionTimes;
70 std::vector<glm::vec3> positions;
71 std::vector<float> rotationTimes;
72 std::vector<glm::quat> rotations;
73 std::vector<float> scaleTimes;
74 std::vector<glm::vec3> scales;
A baked animation: every bone's keys, in six flat arrays.
Definition animation_clip_asset.h:50
std::string skeleton
Name of the rig whose bone order bones addresses.
Definition animation_clip_asset.h:51
float duration
Length in seconds.
Definition animation_clip_asset.h:58
std::vector< ClipMarker > markers
Instants the clip announces as the head passes them, in time order.
Definition animation_clip_asset.h:67
std::vector< ClipBone > bones
Parallel to the skeleton's bones.
Definition animation_clip_asset.h:60
The three channel ranges belonging to one bone of the clip's skeleton.
Definition animation_clip_asset.h:26
One bone's keys for one channel, as a range into the clip's flat arrays.
Definition animation_clip_asset.h:18
uint32_t count
0 means the channel is absent and the bind pose stands.
Definition animation_clip_asset.h:20
A named instant a clip announces as its playback head reaches it.
Definition animation_clip_asset.h:38
float time
Seconds into the clip; within [0, duration].
Definition animation_clip_asset.h:40
Opaque, type-safe handle for resources, distinguished by ResourceType.
Definition resource_handle.h:16