Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The collision detection in the top-down driving game was based on rectangular blocks. It is fairly easy to detect collisions against straight horizontal or vertical edges.
However, a racetrack includes curves. Detecting collisions against curves, or even short segments of diagonal walls, is much more difficult.