XLE  v0.02.0
Classes | Public Member Functions | List of all members
Sample::AnimationDecisionTree Class Reference

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)
 

Detailed Description

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.


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