Game Development Reference
In-Depth Information
3.
Click Play.
4.
Set the Max Forward Speed to 15, and click in the Game view to change the
focus back to it.
When you first click on Play, the application focus is changed to the game window, so your input
(mouse movement, keyboard entries, etc.) is applied to that view. As soon as you click outside of the
Game view, your input no longer applies to the running game. This allows you to make adjustments
in the Scene view, the Hierarchy view, and the Inspector during run-time. To “get back” to the game,
you must return focus to it by clicking in the view before your input will be applied to the game. If
you click outside of the Unity editor, the running game is paused.
5.
Drive around the terrain.
The First Person Controller zips speedily around the environment, but it slides badly around turns. To
adjust for the extra speed, you could increase the Mouse Look component's Sensitivity X if you wish.
Let's play with the Gravity parameter next. This will not affect the scene gravity, as it is controlled by
the Physics settings.
6.
Set the Max Forward Speed back to about 8 .
7.
Set Gravity to 1 .
8.
Drive the First Person Controller off the side of a pit or mountain peak, and
enjoy the long scenic trip to the ground.
Jumping offers some interesting possibilities.
9.
Set the Base Height to 10 , and try a few jumps (Figure 3-12 ).
Search WWH ::




Custom Search