PDA

View Full Version : AABB to plane collision.


simotix
04-06-2008, 11:21 AM
Hello, I have read over several things on Plane/AABB collision and I am still a bit confused on getting it to work correctly. My main question is how do you find the normal and diagonal min/max.

.oisyn
04-06-2008, 12:21 PM
I don't get your question. The normal is a property of your plane, and min and max are properties of your AABB. What do you currently use to describe these entities?

simotix
04-06-2008, 05:34 PM
I was reading bronxbomber92's post from http://www.devmaster.net/forums/archive/index.php/t-10324.html and got confused then I guess. However, how do I find the property (normal) of my plane? That and the "distance from origin"?

.oisyn
04-06-2008, 05:51 PM
You did not answer my question. How am I going to help you getting the normal if I don't know how you currently store your planes? What are your datastructures? Show some code (like, the struct or class storing your plane)!

Also, I'm beginning to suspect that you are confusing "plane" with "polygon". A plane is an infinite entity, e.g. it has no boundaries. As opposed to a polygon, which is bound by edges (and usually defined by a list of vertices that make up these edges).