Report as inappropriate.
Left-click to shoot the cue ball in that direction.
This scenario implements the ball and wall collisions reasonably well, to provide a basis for a pool game (at the moment, it's a bit of a toy). All the maths is explained in this post:
Feel free to take the code and make a finished game with it.
Want to leave a comment? You must first log in.