I cant seem to retrieve the height of the game level so that the player will not simply walk thru the map
This is what i have:
float fHeight = dbGetGroundHeight ( iTerrain, dbObjectPositionX (iPlayer1 ), dbObjectPositionZ (iPlayer1 ) );
dbPositionCamera(dbObjectPositionX(iPlayer1) ,dbObjectPositionY(iPlayer1) + 75 ,dbObjectPositionZ(iPlayer1));
dbPositionObject(iPlayer1,dbObjectPositionX(iPlayer1), fHeight, dbObjectPositionZ(iPlayer1));
dbRotateCamera(dbObjectAngleX(iPlayer1),dbObjectAngleY(iPlayer1) ,dbObjectAngleZ(iPlayer1) );
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.2f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.2f );
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );
dbRotateObject(iPlayer1,0,180,0);
dbMoveCamera(-80);