Built with Gemini 4: an 83kb Rust physics 3D engine runs 20,000 bodies at 120fps

LinusEkenstam · x · 2026-10-14

LinusEkenstam used Gemini 4 Argon to build a physics-based 3D engine from first principles in Rust, aiming for maximal performance at minimal weight — the whole engine is just 83kb.

On a MacBook Pro M5, in the browser, it handles 20,000 physics bodies and 2,000 simultaneous collisions while running smoothly at 120fps. It also ships a crude but working water plugin that he's still improving.

Demos so far include a wrecking ball, bridge simulator, marble run, water sim, and string-attached physics objects. He stresses it's a full engine built from scratch, not a plugin.

Related event: Linus Ekenstam Builds 90KB Rust 3D Physics Engine with Gemini 4 Argon(6 posts)→

Original post →

More from coding & agent

coding & agent channel →