Animations ========== The NanoBrain [Ant](#CreatureControl.Ant) comes with walking animations and an animator. These can be used with any insect model but as the rigs of these hexapods can be very different[1](#notes-1) our software provides an animation projection to solve this. The animations are designed to work with the InsectTargetRig found in `Runtime/Resources`. When this is used with any other insect model, you will probably see only root motion and no leg movement. This is because there is no mapping from the animation to the bones in the rig of that model. If you want to use the animations on a different insect model, you should place the [Insect component](#CreatureControl.Insect)[2](#notes-2) on that model and assign the animator contoller to the `Animator Controller` parameter. *Do not* assign the animator to the Controller parameter of the models Animator component! Note that you probably also need to [configure the leg bones of the model](Models.md#custom-models). Animators --------- The package provides an animator In `Samples/Animation` called AntAnimator3. This provides a full 3 Degrees-of-Freedom walking with the following parameters: - Forward: Forward/backward walking - Rotate: Rotate left/right - Strafe: Move sideward left/right The corresponding animations will be blended together in a resulting walking animation. The [Ant component](#CreatureControl.Ant) only uses the Forward and Rotate parameters to move the ant. Animations ---------- The package provides different walking animations, found in `Samples/Animation`: - AntIdle: No movement - AntWalkForward: Forward walking, can be reversed to backward walking - AntWalkLeft: Left sideward walking - AntWalkRight: Right sideward walking - AntRotateLeft: Anti-clockwise turning on the spot - AntRotateRight: Clockwise turning on the spot These animations are blended by the AntAnimator3 to enable all possible walking movements. ### Notes 1. The animation retargeting of Unity's Mecanim only works for Humanoid models. 2. or any other component derived from [Insect](#CreatureControl.Insect)