Game Development Reference
In-Depth Information
return false
end
end
AABB versus AABB Intersection
As with spheres, AABB intersection is not very expensive, even for 3D games.
It's easier to visualize the algorithm with 2D AABBs, though, so that's what is
covered here.
When checking for intersection between two 2D AABBs, rather than trying to test
the cases where the two AABBs dointersect, it'seasier to test the fourcases where
two AABBs definitely cannot intersect. These four cases are illustrated in Figure
7.6 .
Search WWH ::




Custom Search