C4 Engine
C4 Engine API Documentation

AnimationController::PlayAnimation

Defined in:  C4Models.h
Plays an animation from a resource.
Prototype

void PlayAnimation(const char *name, uint32 mode, float rate = 1.0F);

Parameters
name The name of the animation resource.
mode An interpolator mode for the animation.
rate The rate multiplier for the animation.
Description
The PlayAnimation function loads the animation resource specified by the name parameter and plays the animation using the interpolator mode specified by the mode parameter. See the Interpolator class for a description of the modes. The rate parameter specifies the rate multiplier for the animation and must be a positive number.
See Also

AnimationController::StopAnimation