Game Development Reference
In-Depth Information
Chapter 4. Add Character Control and
Animation to Our Hero/Heroine
Here we are in part two of hero/heroine. In this project, we will make our character come to
life using the Mecanim animation system (the new animation system in Unity 4.x, which
allows us to easily set up the complex character animation) and some custom scripts to
control our character to walk, jump, and run with smooth transition from one animation to
another.
Why Mecanim? The advantage of the Mecanim animation system in Unity is that we can
use the animation from different characters and retarget the animation. This is a very con-
venient way to reuse the same animation on a different character.
We will learn the basics behind the Mecanim animation system and the Animator Con-
troller window for our character as well as understand the concept of the third-person con-
troller and camera. This way, we will obtain a good understanding of the new animation
system in Unity and can adapt it to use for the specific extra animation later on. The fol-
lowing screenshot shows the state machine of the Mecanim system:
Search WWH ::




Custom Search