Doric column
David Pittman
HomePersonal ProjectsTeam ProjectsResume
Doric column

Mass-Spring Physics

Springs image



Quick facts:
Development time: 2 weeks
Engine: Original

The final project of my Math/Physics courses at The Guildhall at SMU was a demo of multiple particle masses connected by springs.

This project served as a testbed for me to implement multiple integration schemes for the mass-spring system, including forward Euler, backward Euler, and Runge-Kutta (the distributed version uses RK4). I also wrote code to do partially elastic particle-particle and particle-world collisions.

The demo allows the user to interact with the particles in many ways. The user can click and drag a particle, add or remove particles, and link particles with springs in any arbitrary way. Linking a particle to itself will fix it in space.

Executable: ZIP 1.3 MB
Video: WMV 626 KB



Springs image