Mass Spring Simulation
Rolling, Swimming, Interactivity
The final project for Simulation of Biology was to create a mass-spring simulation with two simple creatures. The expectation was to create a top-down 2D system with creatures using just a few springs and point masses to move. For the project, I opted instead to create a 3D simulation with simple fluid dynamics for an eel and a Coulomb friction-based collision system with internal pressure forces for the blob. The project uses muscle contractions and physics interactions with the environment to move both the creatures. I also made it possible to control the creatures directly using the W/A/S/D keys on the keyboard. Both creatures are dynamically configurable in terms of resolution as well. The blob in the video below is comprised of 728 points and 2904 springs, all of which undergo a small amount of contraction/expansion to drive motion. The eel in the video below consists of 308 points and 1420 total springs with 49 springs along the lateral lines of the body acting as actuated muscles.