   My Billard game table's size collision
  Guys, I got a new problem, I'm testing my white ball's collision with my table's size but the ball isn't colliding with it, when that was to collide. Here is the all code: http://codepad.org/bAQisVCK . and the following code is the part that tests the collision:if(myBalls[15].y + myBalls[15].height >= myTable->y + myTable->height){myBalls[15].yVelocity = -myBalls[15].yVelocity;}I tried to change this code position to another, before the velocity test, but the ball shakes if it collides. If someone here knows the solution, please help me. Thank you.   
  This has nothing to do with OpenGL, you'll probably want to post this in Math and Physics instead.   ;  ok, I'll post there.   