Game Development Reference
In-Depth Information
Figure 3-8. The component right-click menu, selecting Remove Component
10. Select the Main Camera, and activate it by clicking the check box next to its
name at the top of the Inspector.
The Game view returns to its previous view. “Activate” is the term used to control a gameObjects's
state and “Enable” is the term used for components. Later, when you manipulate those parameters
from scripts, those terms will be used.
Let's take a look at the rest of the First Person Controller's components.
The Character Controller Component
The Character Controller is a specialty component that serves, more or less, to combine the
functionality of the collider and Rigidbody components. A rigidbody component is required for
using physics to drive interactions in the scene, but it is too expensive to use for the First Person
Controller, so Unity adds the most important functionality to it through the Character Controller. This,
not physics gravity, is what causes the First Person Controller to fall when you drag it or drive it off of
cliffs. It has a few parameters that can be adjusted to help or hinder your First Person Controller as it
moves around the scene.
1.
Select the First Person Controller.
2.
Click Play, and try to drive the First Person Controller into a deep pit. Then try
to get out or go up the side of a steep slope.
 
Search WWH ::




Custom Search