Pool Game

Download the Simulation

Description

The program is a simple pool table simulation. There are four normal balls on the table and the cue ball (which is the bright red one). Balls collide and bounce physically as far as linear momentum is concerned. With rotation, I simply made the ball rotate based on how fast it was moving, but could seem to get something that looked quite realistic enough.
The controls for the table are pretty simple, the mouse (and on backup, the arrow keys) control the view. While holding the left mouse button, up/down with the mouse tilts the view, and left/right swivels the camera around the table. Hold the right mouse button and moving the mouse up/down zooms in and out. You can press 'q' to give all of the balls a random velocity. 's' causes the cue ball to shoot in the direction the camera is facing. Finally, 1 and 2 toggle the lights on and off.
See the readme if you would like some more info on development:
Program readme file

Images of the Action