height

Blitz3D Forums/Blitz3D Beginners Area/height

Mike0101(Posted 2006) [#1]
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.


Mike0101(Posted 2006) [#2]
Ok, resolved

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

End Function