
Verlet Integration is an alternative approach to implement an simulate particle physics programmatically, in contrast to the commonly used Euler Integration. It is in many ways more robust in terms of energy conservation.

Springs are an integral concept to physics, fundamental components used in many applications, coming to life with Hooke's Law from the 17th century. In this post we have a look at how to code and simulate such springs and extend a previous particle system with them.

In this post we have a look at a method with which we can greatly improve a collision detection system. Using a lookup grid we can greatly reduce the number of required checks between particles. We will also look at some methods to optimize this lookup grid.

In this post we will program a particle system in p5js from scratch. We'll mainly dicuss object oriented programming and delve into the necessary physics concepts to compute collisions, all while implementing a full particle simulation with P5JS.