Is there an algorithm for a pool game?
- by Dmitri
Hello!
I am looking for algorithm to calculate direction and speed of balls in a pool game. I am sure there has to be some type of open source code for this since pool games are some of the oldest computer games I can remember.
I mean, when one ball hits another, I need a algorithm to calculate direction of both of them. It will depend of exact angle of where they hit each other and on speed.
I want to practice Java coding, so I am looking for java code or package that has this type of code.