This is a satisfying "simulation" of particles that attract and repel to the mouse. It's not really a simulation, but it looks cool.
Keybindings:
R
: reset the particlesSPACE/M1 Click
: toggle the mouse attraction/repulsionB
: toggle the screen border collisionArrow Keys (Up/Down/Left/Right)
: Add/Remove 1/1/100/100 particlesJ/K
: decrease/increase the multipler+/-
: increase/decrease ball sizeESC
: quit
More options with ./particles --help
demo.mp4
Install raylib on your system, then adjust the build.rs file to point to the raylib library.
Then, just run cargo build --release
to compile.
I will maybe add Android and Web support in the future.
- Add Android support
- Add Web support
- Add a GUI