CMPS 161 Final Project
Bouncing Spring Balls


Kimberly Harlin, kaharlin@cats

Description:


There are three balls each with a spring inside them. Each spring has a different spring constant. They then fall according to the physics of gravity. Gravity in this case was minimized due to the fact that it became too small of bounces when gravity was 9.8m/s^2.
Ball1's position can be changed by using the slider. This will create simple collisions with the other ball with which it comes in contact with.

If the balls are just dropped without moving them, they fall to the ground and bounce straight up. This rebound is different for each ball, and velocity up will be calculated according to the spring, and gravity.

The physics used for the project had to be "tweaked" due to the fact that the bounce is not interesting if the

User Guide:

Sliders:
There are 5 sliders. Three are to change the spring constants on each ball. Two are for changing the position of ball1. To create simple collisions place ball1 over either of the other 2 balls.

Animation:
To begin animation press and hold the space bar. While the key remains pressed the balls will continue bouncing. Once the key is let up animation stops.
Animation can also be started by clicking the mouse in the window and moving it. It continues to animate while the mouse is in motion, once the mouse stops the animation ceases.

If the values on the sliders have been changed the window needs to be reselected, or the animation will not work. To do this tab til window is selected. This is only the case when animating using the key to start it. If the mouse is being used for the animation the user can just click in the window once again and move the mouse to create animation.

Images and Movies:

Clips of Balls Bouncing:
Clip 1
Clip 2

Images of Balls Bouncing: