Billiards style ai.

Anyone know of resources for building a billiards type ai. Basically hitting an object at a target.

Well here is some theory I came up with. Draw a line from target being the hole… To the ball. Add some units and you now how a start location target or impact target that should by physics when hit go at the original start.

X A<=================B

X is impact target A is the ball. B is the hole.

So if we took a ai we know it needs to go to x then get look at vector for b and hit at in that direction… Hmm.

Just spit balling since no one else has ideas.