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 a custom character control script

From the last section, we know how to set up the character controller using the built-in third-person character controller, which works very well. If we look at the built-in character controller closely, we will see that it takes only four animation clips, but we want to add one more clip, which is the fall animation (for the model that we had, it's the backward of the jump animation clip). However, if we have more than four animation clips, we will need to build our own script because there is no support for including a falling animation in the built-in script. So, we will create our character control script which is similar to, but much simpler than, the built-in third-person controller script.

Prepare ...

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