Is there an algorithm for a pool game?

Posted by Dmitri on Game Development See other posts from Game Development or by Dmitri
Published on 2011-01-29T20:32:33Z Indexed on 2011/01/29 23:33 UTC
Read the original article Hit count: 348

Filed under:
|

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.

© Game Development or respective owner

Related posts about physics

Related posts about java