Original Post
This one should be real easy, but I actually found nothing while hunting around on google. The best I could come up with were winded debates on how to find if a point is inside a (2D) polygon. Close, but not quite what I want as it doesn't take height into account. Maybe I'm just not looking for the right terms. :/ Let's suppose I have a 3D surface that's essentially a heightmap. Given a list of polygons and an X,Z position, I want to find... - Which polygon the object sits atop of (there are no overlapping polygons, by the way) - At which point along the Y axis the object would intersect the polygon if, say, I were to let it "drop" down to the ground. Any assistance would be greatly appreciated. :) Edit: My trig know-how is pretty limited, so be gentle. :P Explanations on how this works would most certainly benefit me in the future though. [Edited by - RuneLancer on June 26, 2005 4:38:17 PM]