check for mesh

Blitz3D Forums/Blitz3D Programming/check for mesh

Rook Zimbabwe(Posted 2004) [#1]
Can I check to see if there is a mesh at a loaction before I drop an object there using types? I use TerrainY() to see the height of the terrain but I was wondering if there was a way to check the map for types before I plunked a tree there.


jfk EO-11110(Posted 2004) [#2]
You could use a Linepick.


ZombieWoof(Posted 2004) [#3]
do a linepick from a point above the drop location with a radius set for the size of area to test.. see what it runs into 1st.....


ZombieWoof(Posted 2004) [#4]
@jfk: yer too fast for me :)


Rook Zimbabwe(Posted 2004) [#5]
So I am imaginging linepick as an imaginary line that I could use to test the surface in that x,y,z,dx,dy,dz range... That way I couldn't put a tree in the water (unless I wanted too... It is the south y'know!) or in a building... OK let me try that.