Physics simulation using Verlet integration

Course project at Aalborg University (2017)

GitHub link

This project is an implementation of a couple of physics simulations, using Verlet integration. The project was done in collaboration with Alexander Arendttorp. We did one simulation of particles, applying forces based on a field of potential energy around each particle. An interesting property of the simulation is that it could be run backwards in time. One could shoot a particle through a lattice of “atoms” and see it explode, simulate backwards to see it reassemble, or change the position of an atom slightly and see it fail to reassemble and diverge significantly. We also implemented a cloth simulation using the same integration algorithm, but different forces and constraints.

Screenshot of simulation

Screenshot of simulation