That is pretty much what i have coded. For some reason everything works perfectly, but the program see's the Load Terrain .dbo file as an object and not a terrain. For this reason it doesnt return a ground height because as far as its concerned there is no terrain. I know this because terrains are positioned at 0, 0, 0 world position using the far corner of the terrain as its focal point... where as object use their dead center position as their focal point.
The only way around this is to create a terrain from a height map which is inaccurate.
This could possibly be a bugg? I unfortunatly dont have the code with me on this computer.
Basicly it goes as follows
`**Typical Startup Functions**
Load Terrain "maps\terrain.dbo", 1
Do
`Get Camera Positions
CamPosx# = Camera Position x ()
CamPosy# = Camera Position y ()
CamPosz# = Camera Position z ()
`Get Terrain Height
TerHeight# = Get Terrain Ground Height (1, CamPosx#, CamPosz#)
`Position Camera
Position Camera CamPosx#, Terheight#+3, CamPosz#
`Update
Sync
Loop