Game Development Reference
In-Depth Information
As for camera, we simply add it as a child to the plane and make it a little bit higher than
it. Obviously, the camera is going to be behind the plane, so it gives a view similar to what
you see in Illustration 29. It is a good idea to extend the far clipping plane of the camera
to 5000 instead of 1000, because flight games depend on long view distances. This is a
result of the nature of the planes, as they fly at high speed on high altitudes. The final step
is to add FlyController script to the plane in order to control it. This script is shown in
Listing 14.
Search WWH ::




Custom Search