CSCI 323 Modeling and Simulation

Project #3: Jello

 

Date Due: 16 November 2009

 

You are to write a program that simulates a cube of jello.  Your cube should initially be positioned above the floor by several meters in a standard gravitational field.  You should simulate the action of the cube as it falls, collides with the floor, and bounces.  You are to capture images of the jello as it falls at 1/30th of a second intervals, and use them to make a movie of your jello in action.  You should turn in your source code and a copy of your movie by emailing me a zip file containing these items.

 

To simulate jello, you should use a mass-spring system as we discussed in class.  Each dimension of your cube should be broken into five or more parts, so that the large cube consists of many small cubes joined together.  You should simulate springs along each edge of the small cubes, as well as across the internal diagonals (to keep the jello from “melting”).

 

Here is the 2D sample code you created in class: bounce.cpp, point.h, point.cpp.