class

AnimationSampler

Samples an AnimationClip at a given time, producing per-bone local transforms

Module
Animation
Header
#include "Animation/AnimationSampler.h"
Namespace
Mowo

Constructors

SignatureNameDescription
AnimationSampler() = defaultAnimationSampler

Public functions

ReturnsNameDescription
voidSampleSample the clip at the given time (in seconds), output local transforms per bone localTransforms must be pre-sized to skeleton bone count requiredBones (Skeleton::GetLodRequiredBones) skips the key interpolation for bones a coarse LOD does not animate; they keep their bind local, so their subtree rides the parent rigidly.

Function details

AnimationSampler

C++
AnimationSampler() = default

Sample

C++
static void Sample(const AnimationClip& clip, const Skeleton& skeleton, float timeInSeconds, std::vector<Mat4>& localTransforms, const std::vector<uint8_t>* requiredBones = nullptr)

Sample the clip at the given time (in seconds), output local transforms per bone localTransforms must be pre-sized to skeleton bone count requiredBones (Skeleton::GetLodRequiredBones) skips the key interpolation for bones a coarse LOD does not animate; they keep their bind local, so their subtree rides the parent rigidly. nullptr = animate everything, which is what every caller that does not care about LOD passes.

Generated from Animation/AnimationSampler.h via animation.json · Oct 26, 2026Version 1.0.0