thrid person game

Blitz3D Forums/Blitz3D Beginners Area/thrid person game

first you have to set the entitypickmode of the level mesh to polygonal.

then you can make a linepick from the playerposition (eg. x,y,z) to somewhere below it.

p=linepick(x#,y#,z#,0,-100,0,.1)

if p<>0
 py#=pickedy()
 grounddistance#=y#-py#
endif