Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DBlendAnimation Class Reference

The U4DBlendAnimation class smoothly blends two animations so that the transition is smooth. More...

Public Member Functions

 U4DBlendAnimation (U4DAnimationManager *uAnimationManager)
 Class constructor. More...
 
 ~U4DBlendAnimation ()
 Class destructor. More...
 
void setAnimationsToBlend ()
 Prepares animations to blend. More...
 
void playBlendedAnimation ()
 sets us the callback to play the animations More...
 
void runAnimation ()
 Transforms the armature bone space. More...
 

Detailed Description

The U4DBlendAnimation class smoothly blends two animations so that the transition is smooth.

Constructor & Destructor Documentation

◆ U4DBlendAnimation()

U4DEngine::U4DBlendAnimation::U4DBlendAnimation ( U4DAnimationManager uAnimationManager)

Class constructor.

sets the animation manager, initializes the scheduler and timer

Parameters
uAnimationManageranimation manager object

◆ ~U4DBlendAnimation()

U4DEngine::U4DBlendAnimation::~U4DBlendAnimation ( )

Class destructor.

releases the scheduler and timer

Member Function Documentation

◆ playBlendedAnimation()

void U4DEngine::U4DBlendAnimation::playBlendedAnimation ( )

sets us the callback to play the animations

The play animation does not start playing the animation. Instead it prepares the callback and initializers how often to call the runAnimation method

◆ runAnimation()

void U4DEngine::U4DBlendAnimation::runAnimation ( )

Transforms the armature bone space.

performs all the space transforms on the armature to create the illusion of animation

◆ setAnimationsToBlend()

void U4DEngine::U4DBlendAnimation::setAnimationsToBlend ( )

Prepares animations to blend.

prepares the previous and next animation to blend