Sign in to follow this  
Pudelmuetze

Plane - AABB intersection

Recommended Posts

Hi! I already looked at http://www.realtimerendering.com/intersections.html for a Plane - AABB intersection test, but I can't access any of the listed ones. My check would simply be to test if the eight vertices of the box lie on the same side of the plane. Does anyone know a better test? Best regards, Pudelmuetze

Share this post


Link to post
Share on other sites
Quote:
Does anyone know a better test?
Yes, the 'separating axis test' (SAT).

In the case of an axis-aligned box and a plane, the SAT reduces to projecting the box onto the plane normal and comparing the projection to the plane distance (you'll often see this test expressed in terms of the box's 'n-vertex' and 'p-vertex').

The method is explained here, in the section titled 'Geometric Approach - Testing Boxes II'.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this