Tech News
← Back to articles

Show HN: An interactive physics simulator with 1000’s of balls, in your terminal

read original related products more articles

ballin

Crates.io

A colorful interactive physics simulator with thousands of balls, but in your terminal!

ballin is a fun TUI app written in Rust that simulates thousands of logical balls, but despite the inherent character constraints of a terminal, you can see the realistic physics of the balls in action:

Extremely high performance using the rapier 2D Rust physics engine: it can handle physics actions on 10,000 balls at effective 120+ FPS!

2D Rust physics engine: it can handle physics actions on 10,000 balls at effective 120+ FPS! Uses Braille Unicode to allow visualizing small, discrete balls.

Clicking the balls to cause a repulsing burst, or by using the geysers by pressing 1-6 or clicking them.

or clicking them. Clicking the top area of the canvas spawns more balls: clicking-and-holding spawns many balls.

Shake the entire canvas by resizing the terminal vertically, or by pressing the arrow keys to perform a pinball tilt.

Change the amount of gravity, friction, and the force of interactive effects to generate some very wacky interactions!

... continue reading