Our player tank is the simple tank model we used in Chapter 2, Finite State Machines and You, with a kinematic rigid body component attached. The rigid body component is needed in order to generate trigger events whenever we do collision detection with any AI characters. The first thing we need to do is to assign the tag Player to our tank.
The tank is controlled by the PlayerTank script, which we will create in a moment. This script retrieves the target position on the map and updates its ...