Animation for the mounts and riders of the game. More...
Classes | |
class | AnimationEntry |
Public Types | |
enum | State { Paused, Idle, Trotting, Galloping, Boosting, Crashed, Falling, Reversing, PivotLeft, PivotRight } |
Animation state. More... | |
enum | Attack { Left = -1, None = 0, Right = 1 } |
Attack state. More... | |
Public Member Functions | |
void | Initialize () |
Validates start-up game state. | |
void | StackAnimation (string name) |
Pushes the specified animation to the animation stack. | |
void | BlendAnimations (float speed) |
Blends the current animations and updates the stack. | |
void | Start () |
Initialise. | |
void | Update () |
Controls the game object to which this controller is assigned. | |
State | SetAnimation (ref float speed, ref float turning, bool boost, bool crashed, bool onGround, Attack attack) |
Sets the animation based on the current speed and limits this speed based on the current gait. | |
Public Attributes | |
Animation | mountAnimation |
Connection to an animatable mount. | |
Animation | riderAnimation |
Connection to an animatable rider. | |
Transform | riderSpineRoot |
Root of the upper body portion of the rider's rig. |
Animation for the mounts and riders of the game.
Attack state.
Animation state.
void CompetitorAnimation.BlendAnimations | ( | float | speed | ) |
Blends the current animations and updates the stack.
void CompetitorAnimation.Initialize | ( | ) |
Validates start-up game state.
State CompetitorAnimation.SetAnimation | ( | ref float | speed, | |
ref float | turning, | |||
bool | boost, | |||
bool | crashed, | |||
bool | onGround, | |||
Attack | attack | |||
) |
Sets the animation based on the current speed and limits this speed based on the current gait.
void CompetitorAnimation.StackAnimation | ( | string | name | ) |
Pushes the specified animation to the animation stack.
void CompetitorAnimation.Start | ( | ) |
Initialise.
void CompetitorAnimation.Update | ( | ) |
Controls the game object to which this controller is assigned.
Animation CompetitorAnimation.mountAnimation |
Connection to an animatable mount.
Animation CompetitorAnimation.riderAnimation |
Connection to an animatable rider.
Transform CompetitorAnimation.riderSpineRoot |
Root of the upper body portion of the rider's rig.