Game Development Reference
In-Depth Information
rather increases with time as long as the acceleration pedal is pressed, and decreases when
the pedal is released. Additionally, using the brakes makes the car lose speed in a short-
er time. Car rotation is also different from persons' rotation. Persons simply revolve around
their selves, but cars need some area to turn within. Therefore, we can imagine two vir-
tual axes to the right and the left of the car at some distance away from the center of the
car body. This distance decreases as we steer more, so we can control the turning angle of
the car. For the sake of simplicity, and because we deal only with digital input (keyboard)
rather than analog input, I am going to use a fixed distance for the rotation axes.
Search WWH ::




Custom Search