This is a simulation of a ball bouncing inside of a box with four edges. Control gravity with the mouse pointer. The black arrow that controls gravity will always point at the mouse pointer, and send gravity in that direction. The ball will reflect off of the walls.