Untold Engine
Beta v0.0.16
docs
|
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... | |
The U4DBlendAnimation class smoothly blends two animations so that the transition is smooth.
U4DEngine::U4DBlendAnimation::U4DBlendAnimation | ( | U4DAnimationManager * | uAnimationManager | ) |
Class constructor.
sets the animation manager, initializes the scheduler and timer
uAnimationManager | animation manager object |
U4DEngine::U4DBlendAnimation::~U4DBlendAnimation | ( | ) |
Class destructor.
releases the scheduler and timer
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
void U4DEngine::U4DBlendAnimation::runAnimation | ( | ) |
Transforms the armature bone space.
performs all the space transforms on the armature to create the illusion of animation
void U4DEngine::U4DBlendAnimation::setAnimationsToBlend | ( | ) |
Prepares animations to blend.
prepares the previous and next animation to blend