Game Development Reference
In-Depth Information
Mission accomplished
In this project, we learned how to set up the animation using the Mecanim system as well
as the basic Animator Controller window and how to use the Animator view to set up the
state machine. We also created parameters to use as a condition to change to each anima-
tion state and the transition between each clip.
Next, we created our CharacterControl script to control our character. We also learned
how to use the Move() function in the CharacterController script and how to
speed up or slow down the animation clip by setting the speed of the clip. We also learned
how to adjust the transition blending between each animation clip to change the state in-
stantly. Then, we used the OnAnimationMove() function to set the animation state and
parameters to control our animation clip.
Lastly, we created CharacterCamera to follow our character by using the LateUp-
date() function to track the position of the character.
We will see a result similar to the following screenshot:
Search WWH ::




Custom Search