minimaxir/ballin: A colorful interactive physics simulator with thousands of balls, but in your terminal!
github.com·2d·
Discuss: Hacker News
📟Terminal Physics
Preview
Report Post

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!
  • 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.
  • Clicking the top area of the canvas spawns more balls: clicking-and…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help