Game Development Reference
In-Depth Information
In line 22 we declare steeringSpeed , which is expressed in degrees per second. The
variables leftAxis and rightAxis declared in line 25 are going to be used as references to
the objects RotationAxisR and RotationAxisL which we have added as children to the car.
We are going to use these objects as rotation axes when the car turns, since the car does
not simply revolve around itself, but it needs some space to turn in. This space is determ-
ined by using these two axes: the farther a rotation axis is, the larger the resulting turning
area is going to be.
Search WWH ::




Custom Search