Skip to content

giacomo-folli/balls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balls

This project is a simulation of bouncing balls created with the nannou crate. It's a simple project to to learn some basic physics and graphics concepts.

Here's a quick look at the simulation in action: demo gif

How to Run

  1. Make sure you have Rust installed. You can download it from https://www.rust-lang.org/.
  2. Clone the repository.
  3. Navigate to the project directory.
  4. Run the project using cargo run.

Controls

  • R: Add vertical velocity to all balls.
  • Down: Decrease the radius of the balls.
  • Up: Increase the radius of the balls.
  • Left: Remove a ball.
  • Right: Add a ball.

Fixes

Task Status
Physics logic rewrite. To do
Fix jitter when objects are close to each others. To do
Add collision handling to top wall too. Done ✅

New Stuff

Task Status
Add more advanced collision detection. To do
Let shape change over time. To do
Load a soundtrack and make the balls react to its frequencies. To do
Allow user customization in a .yaml file (keep it simple). To do
Add more rooms (balls room, sqares room, etc...) To do

About

code for a simple simulation of bouncing balls

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages