March 2017
Intermediate to advanced
480 pages
11h 3m
English
Testing if two triangles intersect is done using a generic SAT test. We will have to test a total of 11 axes. These axes are:

We need to implement a new OverlapOnAxis test as well as the actual SAT test. The actual SAT test will be performed inside the TriangleTriangle collision function. We first covered the Separating Axis Theorem in Chapter 5, 2D Collisions. In this section we will check 11 axes of potential separation. If any axis of separation is found, the triangles do not intersect.
Read now
Unlock full access