i was wondering if anyone could tell me how to go about setting up boundaries for a terrain. I have a 512x512 bitmap that I am loading as a terrain, and i am scaling it and setting boundaries using an object like so:
dbSetTerrainScale (TERRAIN_1, 100.0f, 6.0f, 100.0f);
dbMakeObjectBox (LEVEL_BOUNDS, dbGetTerrainXSize (TERRAIN_1)*100, 1000, dbGetTerrainZSize (TERRAIN_1)*100);
dbPositionObject (LEVEL_BOUNDS, 0, dbGetTerrainGroundHeight (TERRAIN_1, 0, 0), 0);
and then I am checking for collisions with this object, at which point an object will be either prevented from going any further or the object will turn. Am I doing this right?