*USE TURBOWARP* https://turbowarp.org/1012081892?hqpen&interpolate Click and drag mouse to move (or WASD) Hold space to pause the simulation Scroll wheel or e/q or up/down to zoom in and out Press x to randomize the colors and forces Press r to reset the simulation keeping the forces and colors Press n to randomize the colors Hold down V to change number of particles (once set press R or X to apply it) Press 1 to attract particles to the mouse Press 2 to repel particles from the mouse
All code by me Recreating an older project with my newer knowledge spatial hashing (at 22:05): https://www.youtube.com/watch?v=rSKMYc1CQHE