height

Blitz3D Forums/Blitz3D Beginners Area/height

How can I get the Y coord. of a point on a terrain mesh? (not heighmap terrain, a simple b3d mesh)
I would like to put trees on this terrain and I need the Y
coord.

Ok, resolved

Function getmeshterrainy#(gx,gz)
pick=LinePick(gx,100,gz,0,-120,0)
Return (PickedY())

End Function