March 2017
Intermediate to advanced
480 pages
11h 3m
English
Testing if two AABBs overlap involves performing an interval test on each of the world axes. To visualize this problem, let's consider what an interval test looks like on just one axis:

Given shapes A and B, we have an overlap only if the minimum of A is less than the maximum of B and the maximum of A is greater than the minimum of B. The actual overlap test would look something like this:
A.min <= B.max && a.max >= b.min
We can determine if two AABBs overlap by performing this test on the global X, Y, and Z axes.
We are going to implement a function to test if two AABBs are overlapping or not. This function will test for interval ...
Read now
Unlock full access