Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Animation::AnimationEvaluator Class Reference

Evaluates animation keyframes at a given time. More...

#include <AnimationEvaluator.h>

Classes

struct  JointPose

Static Public Member Functions

static void evaluate (const Assets::Animation &animation, float time, std::vector< JointPose > &outPoses)
 Evaluate all channels at given time, output one JointPose per joint.

Detailed Description

Evaluates animation keyframes at a given time.

Produces local-space TRS (translation, rotation, scale) for each joint by sampling all channels of an animation at the specified time.

Definition at line 17 of file AnimationEvaluator.h.

Member Function Documentation

◆ evaluate()

void Engine::Animation::AnimationEvaluator::evaluate ( const Assets::Animation & animation,
float time,
std::vector< JointPose > & outPoses )
static

Evaluate all channels at given time, output one JointPose per joint.

Parameters
animationThe animation clip to evaluate
timePlayback time in seconds
outPosesOutput vector (must be pre-sized to joint count)

The documentation for this class was generated from the following file: