So here's my situation. I bought t.ed, and want to use the models I make in Darkbasic. I have gotten as far as getting the terrain in my darkbasic and being able to move through it with a little sphere. The only things is that I don't want to go strait through the hills and things, and I want to go over them. I want to get the ground height. Here's my code. If someone could just put in the easiest way, that would be great. You can mod the code however you like and get rid of the sphere or do anything I just want to be able to move over the hill and things not through them.
Sync on
Sync rate 30
load object "jimmy.x",1
Fog on
Fog distance 4000
Fog color RGB(128,128,128)
Color Backdrop RGB(128,128,128)
make object sphere 10, 50
Do
aY# = object angle Y(10)
if upkey()=1 then move object 10,10
if rightkey()=1 then Yrotate object 10,Wrapvalue(aY#+5)
if leftkey()=1 then Yrotate object 10,Wrapvalue(aY#-5)
X# = Object position X(10)
Z# = Object position Z(10)
cZ# = Newzvalue(Z#,aY#-180,100)
cX# = Newxvalue(X#,aY#-180,100)
Position camera cX#,100,cZ#
Point camera X#,50,Z#
sync
loop