8#include <glm/gtc/quaternion.hpp>
66 [[nodiscard]]
const std::string &
getName()
const
71 [[nodiscard]]
const std::vector<Engine::Animation::AnimationChannel> &
getChannels()
const
89 uint32_t channelIndex,
91 glm::vec3 & outTranslation,
92 glm::quat & outRotation,
100 std::vector<Engine::Animation::AnimationChannel>
channels_;
Base class for asset wrappers. The data is stored in the private member variable 'data' in form of en...
A manager which is used to look up existing assets and their loading state.
AnimationAssetManager()=default
float getDuration() const
const std::string & getName() const
void sample(uint32_t channelIndex, float time, glm::vec3 &outTranslation, glm::quat &outRotation, glm::vec3 &outScale) const
Sample a specific channel at the given time.
std::vector< Engine::Animation::AnimationChannel > channels_
const std::vector< Engine::Animation::AnimationChannel > & getChannels() const
Animation channel data and evaluation helpers.
InterpolationType
Interpolation method for animation keyframes.
A single animation channel targeting one joint's transform property.
InterpolationType interpolation
enum Engine::Animation::AnimationChannel::Path path
std::vector< float > timestamps
std::vector< glm::vec4 > values
vec3 for T/S (w unused), quat for R (xyzw)