Game Development Reference
In-Depth Information
Illustration 23: A simple character we are going to use for the third person input system
After creating the character using the main body, which is a capsule object that has other
objects (hands and head) as children, we need to add the camera as a child to this object.
This is necessary to make the camera follow the character all the time. Next step is to add
a script to the character object to control its movement. We are going also to add another
script for the camera. Let's begin with the first script ThirdPersonControl , the script that
we add to to the character to respond to keyboard input (movement and jumping). This
script is shown in Listing 10.
Search WWH ::




Custom Search