--loading the terrain and scene
terrain=CreateTerrain(2048)
LoadTerrainHeightmap(terrain,"abstract::deserthighway_height.RAW")
world=LoadScene("abstract::deserthighway.sbx")
world:SetCollisionType(2)
(i have a body attached to the camera)
-- calculating the height of the camera above the ground
ALT=math.floor((body.position.y-TerrainElevation(terrain,body.position.x,body.position.z))/0.3048)