Chapter 5. 2D Collisions
With the basic primitive shapes defined, we can start testing for collisions. In this chapter, we are going to implement the following collision tests:
Circle to circle
Circle to rectangle
Circle to oriented rectangle
Rectangle to rectangle
Separating Axis Theorem
Rectangle to oriented rectangle
Oriented rectangle to oriented rectangle