Building Player Movement Controllers
As discussed in Chapter 3, what we called a player controller is focused on movement; it is the script that determines the way that a player moves and behaves in the physics world. It is entirely focused on movement—making a ship fly, a human move along the ground, or a car to drive.
The example games call for three different vehicle types:
- Shoot ’em up spaceship—A spaceship that moves up, down, left, and right. Its movement need not be physics based.
- Humanoid character—This control script is capable of general human things, such as running forward, backward, and turning around.
- Wheeled vehicle—The vehicle controller utilizes Unity’s wheel colliders to work toward a more realistic physics simulation. ...