i kinda answer'd this for somebody else so i can kinda answer it for you too,
if you have an object and position it at cartesian coordinates , lets say my object 1
you first set up velocities for the axies, like vX, vY, vZ, the only one you need really deal with though is vY.
in my code i havea jump command that works like this:
GameLoop(){
... //some code
onJump(){
dy = dy + 10;
}
... //somemore code
dbObjectPosition( x , (y + dy), z);
// then add some gravity
dy = dy - .8;
//then check for collision, mine just collides
// when the y coordinate hits zero and stops.
if( y < 0)
{ dy = 0;
y = 0;
}
...
} // END GAME LOOP
Now heres my question, how do i instead of just stopping at y = 0 can i make my camera stop when ti collides with my terrain? Right now the dbCameraAutomaticCollisionON() makes it so my camera can't "walk" around on the terrain, i have to continually hit jump to move around. Its like it gets stuck on my terrain. I've try'd moving the terrain down and shrinking the camera collision radius but it doesn't work, i'm still just stuck. ANy ideas?
hey doods