Game Development Reference
In-Depth Information
Our vehicle is now ready to be controlled, and therefore we need a number of scripts that
work together to give us an acceptable look and feel of a real car. First and major script
is PhysicsCarDriver , shown in Listings 41 through 43, which is going to provide basic
functions of a controllable car. These functions are independent from user input, which
makes the script general to a degree that allows the car to be controlled through AI driver. I
have separated this script over multiple listings since it is relatively long. Listing 41 shows
the variables we need to control the vehicle.
Search WWH ::




Custom Search