Quote:And this is what woo's method consists of:
From the six planes, reject those with back-facing normals From the three planes remaining, compute the t distance on the ray-plane test Select the farthest of the three distances Test if that point is inside the box's boundaries
Quote:Now, I know that the dot product can show that two vectors are perpendicular, but remind me again, what does the dot product do in this case that will show that three of the planes are back-facing compared to the side of the aabb that the ray is facing?
- Six dot products to check the first step
- Three point-ray tests
- A few comparisons for the last step