Game over-Wrapping it up

In this chapter, we have learned how to set up the animation from a 3D model and we also learned a bit about how to export the model with animation from 3D Studio Max to use in Unity. Then, we used the CharacterController script to our character and added the built-in Third-person Controller and Third-person Camera to apply it to our character and make it move.

Next, we created our CharacterControl script to control our character and add the fall animation that we want to use for 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 use Animation.crossFade() to cross fade the current animation to another, giving animation clip. Lastly, we created our CharacterCamera to follow our character by using the LateUpdate() function to track the position of the character.

We will see a result similar to the folowing screenshot:

Game over-Wrapping it up
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.139.8