WeSearch

Ball Simulator in Python Made with Claude

·3 min read · 0 reactions · 0 comments · 20 views
#physics#simulation#programming
Ball Simulator in Python Made with Claude
TL;DR · WeSearch summary

A new 2D physics simulation tool called Ball Sandbox has been released, allowing users to explore ball dynamics within various container shapes. The tool includes both an offline renderer and an interactive Pygame sandbox, enabling real-time adjustments to physics parameters. Users can download the application for Windows and utilize features such as live sliders for physics settings and multiple container shapes.

Key facts
Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

Ball Sandbox — 2D ball-in-circle physics A small 2D physics playground inspired by "2^27 balls dropped inside a circle": an offline MP4 renderer plus an interactive Pygame sandbox with multiple container shapes and live-tunable physics. UI defaults to English; click EN / 中文 in the top-right to switch. Download for Windows → Two programs 1. Offline renderer — sim.py Renders the wall-only "drop balls into a circle" scene to output_nocollide.mp4 using NumPy + Numba. uv run python sim.py 22 000 balls in a 270 px circle Released simultaneously from a small cluster just below the top of the ring Per-frame colors = current y (top = red, bottom = violet) 10 s @ 60 FPS, ~15 MB All knobs live in the CONFIG block at the top of sim.py. 2.

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub