Homework 3

For this homework I used both Euler's method and the midpoint method with a constrained dynamic system to model the bead on a wire. My implementation is based on the 2001 Siggraph course notes and uses the principle of virtual work and feedback. The feedback portion utilizes spring and damping constants. The damping constant is set to be relatively low and the spring constant is conrolled by the user. The user may also control the mass, gravitational accelaration, and timestep of the process. The Euler method is more difficult to keep stable and requires a higher damping constant.

The code is zipped here and the demo video is here.