Exercise One

Experiment with the cycleTime and numSteps values in the VRML and Java source repectively to see how the speeds are affected.

Exercise Two

Reorganize the Java code so that an arbitrary number of phases and number of steps for each phase and step size for each phase can be declared in arrays at the start and then the move function takes care of the state changes regardless of how many there are.

Exercise Three

Change the ball to a box and add a sequence of rotations as well.


Back to Scripting I main page