Character Animation

The Character Animation controller is used to control when and what movement related animations a character should play. One of these is normally needed except when the character controller specifically noted to not add one. Before adding one of these to your character make sure it is actually needed by the selected Player or NPC controller as some of them might have build-in functionality to control the character’s animation.

These components can be added to a character from the component menu: plyGame > Character > Animation.


Legacy

The Legacy Animation controller is used when the character and animations makes use of the legacy animation system of Unity.

Use Lower-body Rotation

This controller is able to turn the lower part of the character’s body. This is useful when the character moves sideways and there is no sideways movement animation. You need to specify the the Hub/Bip that is the root part that will be rotated, normally Bip001, and the Upper Spine part, normally Spine1. You will have to play around with what you use here to get the right looking rotation for your character setup.

Definition

An animation definitions consist of the following fields.

Animations

Movement Animations

You can add more than one movement animation via the Add movement definition button at the bottom of the component’s inspector. You tell the controller via the Speed Detect field when the animation should be used.

You will normally want to add a catch-all animation definition that would play when the character is moving at its maximum speed, for example the Run animation. This catch-all definition will use a value like 999 for the speed detect.

The other definitions you add will then use an “upper limit” that represent when that definition should be used or not. Lets take for example a case where you want to add a Run, Walk and Sneak animation definition for a character. When sneaking, the character might be moving at a speed of ‘1’, when walking it might move at a speed between ‘1’ and ‘4’ and when running it will be moving at a speed of between ‘4’ and ‘6’.

The speed detect for each will look like this…

For each definition you can specify if body rotation is used or not and what the max angle is that the body can be turned. This option will do nothing if Lower-body Rotation is not turned on and setup.


Basic Mecanim

The basic mecanim character animation controller can be used when your character animations is set up for use with Unity’s Mecanim system.

Root motion will be disabled for the animator as this controller assumes the character controller to handle all movement and rotation.

--eof--