2.1 KiB
Animations
The NanoBrain 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 different1 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 component2
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.
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 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
- The animation retargeting of Unity's Mecanim only works for Humanoid models.
- or any other component derived from Insect