Ground height with triangle mesh group

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
tadmiral
Posts: 9
Joined: Thu Oct 07, 2010 10:06 am

Ground height with triangle mesh group

Post by tadmiral »

Just wondering how i can get the ground height value so i can position boxs on the map.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Ground height with triangle mesh group

Post 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.
Post Reply