Bouncing balls
Due by: September 23, 2008
This assignment is intended only for students who took cs411. The purpose of this assignment is to write a program that simulates bouncing balls inside a 3D box. The program gets in the command line two arguments: the number of balls and a speed factor. In the beginning of the program the balls should be placed at random locations with random velocity vectors. At each time step a new position for the balls is calculated based on their previous location and the velocity vector. Intersection computations should be used to detect situations in which the balls hit the sides of the box or hit each other. In such cases the velocity vector should be changed. The speed factor provided by the command line argument may be used to increase/decrease the overall motion of the balls. The following are some particular implementation details: