In this chapter, we’ll take a look at two important centralized interaction handlers: the CollideScript and the CarSensorScript classes. These two scripts round out the game’s interaction handlers and their associated game mechanics. The CollideScript handles a number of different interactions that occur when differing game objects collide with a hover racer.
The CarSensorScript is similar but is designed to work with hover racers only. Its main responsibility is to handle car-to-car interactions of varying ...