Hecker's Notes: This is a very basic simulation of a bouncing ball subject to a gravitational force. The ball will bounce off the floor and side walls, losing a bit of velocity on each collision. The ball comes to rest once the x velocity goes below a certain value. Solarbuddy's notes: Credit to Hecker's bounces but I did the pen part.