So now we’ve got a visual representation of the track and ...

Look at Car Movement script now. We have some tweakable properties for acceleration, braking and steering speeds. We get a reference to the PlayerInputs component so we can read X/Y values from this. The script applies the inputs to the physics of the car in the FixedUpdate() function: ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download