Hey @tailuge, I just wanted to say thank you for building this project. I’ve long been wanting to build an algorithm to suggest routes given the current set of balls. I found this project to implement the physics engine and debugging tools to be super convenient to play with my ideas.
Current status:
I’m able to place two balls randomly on the table and shot the other one in the pocket. Demo: https://vjeux.github.io/billiards/dist/diagrams.html
Next is to start building the route planning. I have an idea that I believe will work.
Some of the tweets from my hack session today:
So far it’s been dead simple to run and haven’t hit any bugs.
The only thing is that the spins don’t behave quite like the physical world. If I get far enough in my prototype I’ll give some more concrete repro, my hunch is that it’s going to be about tweaking the constants.