5

Which intersection test is generally faster? An axis-aligned bounding box with another? Or an axis-aligned bounding box with a triangle.

I assumed AABB-AABB but I have heard mixed opinions.

1 Answer 1

3

An AABB-AABB test can be carried out using (at most) six compares and six conditional jumps on any standard CPU. Can you do that with a triangle and an AABB? See this question to get an idea of the problem's complexity.

Of course, if your hardware is optimized for collision-testing of triangles, this might be different. But in the general case, testing bounding boxes is always faster than about anything else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.