Game Development Reference
In-Depth Information
Chapter 3
Scene Navigation and Physics
At this point, you have become familiar with creating, positioning, and manipulating various assets
in a scene. The next logical step is to be able to experience your environment as a player. This
is how you will be able to test the flow of your scene design and, as your game progresses, test
functionality and game play.
Scene Navigation
Obviously, not all games will feature first-person or third-person navigation, but they are both a staple
of the game industry and are important to be familiar with. In this chapter, you will be introduced to
the First Person Controller and a lot of the concepts related to character navigation in general.
First Person Controller
The quickest way to get up and running in a scene is to create a First Person Controller. When you
created the project, you imported the Character Controllers package. It contains scripts and assets
for both a First Person Controller and a Third Person Controller. The Third Person Controller is
somewhat outdated since the inclusion of the Mecanim system, but the First Person Controller is
one of the most valuable assets immediately available. Let's get started.
1.
Open the UnityTest project you started in the last chapter.
2.
Open the Terrain Test scene, and position the Scene view to somewhere
along the path you created in the second chapter.
3.
Select the All Prefabs filter in the Project view.
4.
Select the First Person Controller, and drag it into the scene view.
5.
Drag it around, and then position it on the path.
The First Person Controller automatically is placed on the terrain. Its pivot point intersects the ground.
6.
Move it up so the bottom of its capsule is just above the ground.
103
 
Search WWH ::




Custom Search