Try this function with Single or Multimatrix frommMagic World
```GET WORLD HEIGHT function
```This will find the current matrix y# ground height position
```based on the Number of matrix used in variable mat#
```and the Matrix x,z tile size in variables matx# and matz#
```these can be set from an array if required.
function WORLDHEIGHT(x#,y#,z#,firstmatrix,mat,matx#,matz#)
for a=firstmatrix to (firstmatrix+mat)-1
xx#=matrix position x(a)
zz#=matrix position z(a)
if x# > xx# and x# < xx#+matx#
if z# > zz# and z# < zz#+matz#
yy#=get ground height(a,x#-xx#,z#-zz#)
grnd#=yy#
endif
endif
next a
endfunction grnd#
=======================================================================
An example of how to call it is
Rem: Store old object position
oldx#=object position x(1)
oldz#=object position z(1)
oldy#=WORLDHEIGHT(oldx#,object position y(1)+1,oldz#,1,mat,matx#,matz#)
position object 1,oldx#,oldy#+1,oldz#
Watch the bouncing cursor - now in 3d