Snooker Game Collision detection

Hi, i am creating a snooker game in java 2d at the moment, but i am not sure what collision detection strategy to use. Anyone got any ideas?


http://www.darwin3d.com/gdm1999.htm#gdm0999

i have already looked at these papers, the first one is good for calculating the distances between moving spheres, however I do not understand what the paper is saying about movement vectors and neither of the papers say anything about how to loop through all the balls on a table and check for colisions. Do i need to use 2 game loops? I am not sure, i am quite new to java 2d, i know bounding spheres won’t work, if anyone has any excellant algorithms which does not slow the game performance when playing, please tell me!

Uhm. You’ll need vectors, planes and some integrator scheme (eg verlet velocity). That’s complicated, but it’s the way to do it.

From one frame to the next you integrate several times… if the ball gently touches another or a wall you have a collision. If it penetrates the other object you have to step back and forward again (in smaller steps)… repeat that back step and forward in smaller steps until it gently touches the other object etc.

(It’s way too much for a single post or a single article.)