Hey all,
I want to check if a boundingbox intersects a given plane.
The plane must be a given vector and not a mesh.
Hey all,
I want to check if a boundingbox intersects a given plane.
The plane must be a given vector and not a mesh.
For each of the 8 verts of the bounding box, call Plane.GetSide
. Store the result. If the array of booleans are all positive or all negative, then the bounding box does not intersect. Otherwise the array has a mix of true and false, and the bounding box intersects the plane.