I created a Terrain Collision code so that a player walks on top of the terrain and it works just fine. However, if I add another piece of terrain and try setting up the collision with that piece, the terrain collision will only work with the new piece and wont work with the original. Does anyone have any idea how to make the collision work with both pieces?
while ( LoopGDK ( ) )
{
//Gets the terrain height under the player
float Terrain1 = dbGetTerrainGroundHeight (1,dbObjectPositionX(3),dbObjectPositionZ(3));
float Terrain4 = dbGetTerrainGroundHeight (4,dbObjectPositionX(3),dbObjectPositionZ(3));
PlayerSpawn();
Hud();
//Object 3 is the player, the codes put the player at terrain height
dbPositionObject(3,dbObjectPositionX(3),Terrain1,dbObjectPositionZ(3));
dbPositionObject(3,dbObjectPositionX(3),Terrain4,dbObjectPositionZ(3));
// update the screen
dbSync ( );
}
HEYYYY YYYOOUUUUU GUUUYYYYSSSS