Mass Spring Systems

By Shanna Hollingworth

Description

This is an exercise in coding and simulating masses on springs, to acheive a variety of effects! The four included simulations are: Simple mass on spring, chain pendulum, cube of jelly, and hanging cloth. Each simulation required a different permutation of mass-spring connections, and all of the affecting forces had to be calculated for each mass(sometimes up to dozens) in each frame; this included gravity, wind speed, spring tension, the directional forces applied from each connecting mass, and sometimes more.

Check out the github ReadMe below for the full nitty gritty breakdown of the physics involved in this project, or just enjoy the demo! (C++, OpenGL)

Video

Source Code:

https://github.com/shanna1408/Mass-Spring-System-Animations