Game Development Reference
In-Depth Information
However, the built-in third-person character controller has its own limitaions. For example,
if we walk down from the box or try to fall down from the big box, we will see that our
character sill uses the walk animaion. This is because the built-in third-person controller
doesn't support the fall animaion. We will solve this problem in the next step by creaing
our custom CharacterControl script and CharacterCamera and adapt some of the code
from the built-in script to get a result similar to the following screenshot:
Creating a custom character control
script
From the last secion, 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 animaion clips, but we want to add one
more clip, which is the fall animaion (for the model that we had, it's the backward of the
jump animaion clip). However, if we have more than four animaion clips, we will need to
build our own script because there is no support for including a falling animaion 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.
 
Search WWH ::




Custom Search