Game Development Reference
In-Depth Information
5.
With Local coordinates set, rotate the First Person Controller on the Y axis so
that it faces the cube.
6.
Click Play, and drive the First Person Controller up onto the platform
(Figure 3-10 ).
Figure 3-10. The First Person Controller is able to drive up onto a low platform
7.
Increase the cube's height to 0.6 , and lift it so it is no longer intersecting with
the ground on the side that the First Person Controller will approach it.
8.
Now try to drive the First Person Controller up onto it again.
This time the First Person Controller cannot drive up onto the platform. An inspection of its Step
Offset parameter shows that it will not be able to “glide” up anything higher than 0.4 meters (Unity's
default units) in front of it.
9.
Select the First Person Controller, and change its Step Offset to 1.0 .
Once again, the First Person Controller can glide over the platform with ease.
10.
Stop Play mode.
The cube returns to its original height, and the Step Offset is returned to its original amount.
The Slope Limit and Step Offset will go a long way toward establishing the difficulty and feel of the
scene navigation in a first-person game, so set them up accordingly.
Search WWH ::




Custom Search