   Ball bouncing off of a box
  I am trying to get a ball to bounce off of a box but I am having trouble with the phyics of it. I understand acceleration, and I have done sphere and AABB collision but I am just not sure how to do the collision reaction to it. Could anyone please explain it or point me to a good tutorial (or maybe even book).   
  Do you want the sphere to simply bounce, or do you want it to be more complex? (For example the box is moving  or not, is it's velocity get changed due to collision, do you want the ball to spin?)if static box and the simplest case:v2 = v1 + 2*dot(v1,n)*nwhere n is the normal of the collision (normal of the colliding side of the box)   ;here is an example. That's 2D, 3D is the same thing (closestPoint() algo changes a little, response dont change a bit). Not really a tutorial or an exposition though...   