How do I test if two AABoxes intersect while moving?
We can use the intersect function to compute this. We need a vector for each AABox representing the box’s movement over the timestep. You also pass by reference 2 floating point numbers that will be modified by the function. The first of these numbers will be the normalized time of contact. The second is the normalized time of disconnection. The second number will only be set when the boxes pass through each other, in which case it will be set to the time when they stop intersecting.