Getting the triangle of the ground with only an x/z value

Started by AGP, June 17, 2012, 08:28:28 AM

Previous topic - Next topic

AGP

I had a quick look at the PolygonManager class, but it seems to require the polygon's ID, which I don't have. So how do I get a specific polygon from the ground directly under my model? Thanks in advance.

EgonOlsen

By triggering a collision. For example using calcMinDistance or similar. You can get the polygon id from the CollisionEvent if your listener implementation returns that you want these ids.