This time round we’ll assert some basic forces on our particles. First of all we’ll add a repulsion force between all particles, pushing them away from each other. Secondly we’ll insert some boundaries for the particles to remain within, with the walls of the sketch forming a boundary pressure keeping the particles constrained.Source Code