a balls bouncing simulation made in rust
LEFT
orRIGHT
to change theForce
of the Mouse when held downUP
orDOWN
to change theTimescale
(aka the simulation speed)
- wall bounce based on window size
- balls collisions
- hold mouse down to apply force (pull / push) to every balls
- optional: changes colors on collisions
- optional: increases in size on collisions
clone this repo
git clone https://github.com/lunar1um/balls.rs.git
cd balls.rs-main
build via cargo
cargo build --release