World Manager
C4Animation.h

class Animator

The Animator class is the base class for all model animation classes.
Definition

class Animator : public UpdatableTree<Animator>, public Packable, public Constructable<Animator>

Member Functions
Animator::GetAnimatorType Returns the animator type.
Animator::GetTargetModel Returns the model to which an animator applies.
Animator::GetTargetNode Returns the root of the subtree with the model that is affected by an animator.
Animator::SetTargetNode Sets the root of the subtree with the model that is affected by an animator.
Animator::GetWeightInterpolator Returns the interpolator used to modify an animator's weight.
Animator::Preprocess Called to allow an animator to perform any necessary preprocessing.
Animator::Configure Called when an animator is affected by a change in the animation tree for a model.
Animator::Move Called each frame to allow the animator to calculate its output.
Constructor

Animator(AnimatorType type, Model *model, Node *node = nullptr);

Parameters
type The animator type.
model The model to which the animator applies.
node The root of the subtree within the model that is affected by the animator. If this is nullptr, then the root is the same as the model parameter.
Description


Base Classes
UpdatableTree<Animator> Used internally by the World Manager.
Packable Animators can be packed for storage in resources.
Constructable<Animator> New animator subclasses may be defined by an application, and a constructor function can be installed using the Constructable class.
See Also
MergeAnimator

BlendAnimator

FrameAnimator