Creating a Locomotion Set
A Locomotion Set is the set of motions that are loaded in the Locomotion Behavior.
This page describes the best practices to obtain the best possible locomotion animation. Additional guidelines can be found in the Locomotion FAQ, you should also read them after reading this page.
Motions to be used in a Locomotion Set should be cyclic and contain one and only one support phase per channel in order to be synchronized with other motion.
Motion with more than one support phase will still be used in the Locomotion, but will not be synchronized with other motions.
As explained in the algorithm part of the locomotion, it uses a two-dimensional parametric space:
- linear velocity on one dimension;
- angular velocity on the other.
By blending motions in the two-dimensional parametric space, the available linear and angular velocities are all contained in the convex hull formed by these motions (in green in the following illustration)
Abstract representation of all the available linear/angular velocities with a given motion set
To get the best of the locomotion system, it is advised to fill this two-dimensional parametric space with motion at regular positions.
As all motion within the locomotion can be blended together, it is recommended to add only motions that have the same style (for instance, no motion with arms up and others with arms down).
In such a case, two different Locomotion Behavior (one for arms up, the other one for arms down) should be created, and the switch between the two made when desired by using a trigger.
The neutral motion should be unique, and in same style than the other animations because it may be blended with other motions to slow them down.
|Motion set with only the neutral motion||Two-dimensional parametric space|
If no neutral motion is available, the Locomotion Behavior can create a neutral posture and use it instead (make sure the correct option is checked)
Add walking/running motion(s)
Same style, running animation is not mandatory if the entities are not going to go faster than the fastest walking animation.
Walking animation is not mandatory if the entities are not going to go slower than the lower running animation.
|Motion set with idle + walk and run motions||Two-dimensional parametric space|
It is possible to set replay ratio on some motions to extend the reachable space when there is not enough motions (for instance using the walk animation once with a replay ratio of 1, and a second time with a replay ratio of 2 instead of using a running motion)
At this step, only motions with null angular velocities were added in the set. The locomotion is already usable, but turning animation may looks unrealistic.
It is advised to add turning-walking motions to increase the reachable two-dimensional space.
|Motion set with walk, run + turn motions||Two-dimensional parametric space|
It is possible to set some motions as mirrored in the Locomotion Behavior when left-turn and right-turn animations are not both available (for instance each turn-motion in the illustration was used twice to populate the space: once normal and once mirrored)
The reachable two-dimensional space is already well shaped for the locomotion behavior. The next step to improve it is to add motions that can be used at the beginning of the animation:.
|Motion set with walk, run and turn motions + idle turn motions||Two-dimensional parametric space|
With turning null linear speed motion
Without turning null linear speed motion