Skip to content

lunar1um/balls.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

balls.rs

a balls bouncing simulation made in rust

image

controls:

  • LEFT or RIGHT to change the Force of the Mouse when held down
  • UP or DOWN to change the Timescale (aka the simulation speed)

current features:

  • 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

installation:

clone this repo

git clone https://github.com/lunar1um/balls.rs.git
cd balls.rs-main

build via cargo

cargo build --release

About

bouncing balls simulation in rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages