Game Development Reference
In-Depth Information
Let's now write the script that will turn this static cube into a drivable car (behaviorally,
not visually for sure!). So we can increase or decrease the speed, as well as turning right or
left. Listing 12 shows
CarController
script we are going to use.