Page 1 of 1

Ground height with triangle mesh group

Posted: Tue Oct 19, 2010 5:34 am
by tadmiral
Just wondering how i can get the ground height value so i can position boxs on the map.

Re: Ground height with triangle mesh group

Posted: Tue Oct 19, 2010 5:36 am
by Norbo
With a StaticTriangleGroup, there's no simple 'GetHeight' method, but you can do a raycast directly down from your desired testing position.

If you use mouse picking, you could similarly intersect the ray created by your mouse position with the mesh.