O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the character controller and built-in script

In the last section, we have a ready FBX with an animation clip, and a scene to use. In this step, we will add a character controller script to our character. This script will allow us to be able to access all the character control classes, which we can use to move the character, detect the collision, limit the slope we can walk up, and how big of stairs (step offset) we can climb. Then, we will add a third-person character controller and third-person camera script to our character and set up the parameter to be able to control our character.

Prepare for Lift Off

Make sure to include the unity built-in Character Controllers package included in our project. (We have alreay done this at the beginning ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required