Description


I stored all the information I needed for the simulation on the particles themselves and using a weighted kernel (using particles within a certain radius) I could calculate the forces being applied to each particle. So each particle calculates its own density and pressure based on where they are and then I can apply the pressure and viscosity forces to move the particles around.

Tech Stack

  • JavaScript
  • HTML5
  • CSS3/SCSS