Ground height with triangle mesh group
Ground height with triangle mesh group
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
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.
If you use mouse picking, you could similarly intersect the ray created by your mouse position with the mesh.