XLE
v0.02.0
|
Simple logic for character animation More...
#include <AnimationDecisionTree.h>
Public Member Functions | |
AnimationState | Update (float deltaTime, const AnimationState &prevState, const Float3 &localTranslation, float rotation) |
AnimationState | PlayAnimation (uint64 animation, const AnimationState &prevState, const RenderCore::Assets::AnimationSet &animSet) |
AnimationDecisionTree (const RenderCore::Assets::AnimationImmutableData &animSet, float characterScale) | |
Simple logic for character animation
Typically when animating characters we need some structure to decide what animation to play at a given time (given player or AI inputs). Here is a simple (and limited) implementation for selecting whole-body movement animations and smoothly transitioning between them.