πŸ”ΈAnimations

This page explains how animations work in the CAS demo.

Animator Controller

The base animator controller is included in the CAS package:

Base controller.

It's supposed to be used as a template, as it only contains empty animation states β€” placeholders that can be overriddent with Override Animator Controller feature.

Generic and Humanoid versions can be found in Assets β–Έ CAS Demo β–Έ Animations β–Έ Generic or Humanoid.

circle-info

Note: Generic animations are only compatible with the Kinemation Mannequin (KINEMATION β–Έ Shared β–Έ Character).

Animation Layers.

The controller consists of 5 main animation layers.

Curves

This layer sets curve blending properties to default values:

It contains only a single state β€” Curves_Default. This Animation Clip only contains bindings to the blending float parameters:

It's very important to zero all parameters to avoid situations when blending properties have values from previous frames. If not zeroed, blending values might cause jittering issues.

Stance

This layer blends between standing and crouching states.

Stances.

These are empty states, which are only used to animate the CrouchWeight value using the SetFloat feature.

circle-info

Tip: The CrouchWeight is an Animator float parameter that is used to blend between standing and crouched character movement.

Locomotion

This layer applies full-body animations, like idle, jogging, sprinting and jumping.

Locomotion.

Grounded is a blend tree that blends between different stance and movement animations.

Turn In Place

This layer triggered procedural steps when turning left or right.

Turn in place states.

TurnRight and TurnLeft are empty states by default. It's possible to override them with turning animations. Instead, CAS uses Play Step behaviours to play procedural steps when turning:

Interactions

This last layer is reserved for full-body interaction animations, like climbing or pulling a lever:

Interaction states.

The default state is empty, because all interaction clips are triggered from code using the CrossFade function. Interactions automatically blend out to the empty state upon completion.

Interaction transition parameters.

Last updated