SunaBox
SunaBox is a from-scratch rebuild of OE-CAKE, the popular 2008 physics toy that effectively fell off the radar, with updated graphics, new materials, and a t...

📖Prompt Story & What It Does
SunaBox is a from-scratch rebuild of OE-CAKE, the popular 2008 physics toy that effectively fell off the radar, with updated graphics, new materials, and a ton of improvements. I've included a Classic mode that recreates the original interface, and it even supports .oec files imports made fifteen years ago.
Some fun things to try:
- Paint sand and then hit it with lightning - it turns to molten glass and cools transparent!
- Drop "Orbies" (Orbeez) onto water and watch them swell and grow.
- Connect Mortars (fireworks) with a fuse and light the fuse for a personal fireworks show.
- Heat popcorn kernels until they burst into fluffy popcorn and steam!
- Wax behaves like a lava lamp: melts, rises, cools, sinks.
- Drop some metal into a pool of acid, and ignite the fumes!
- Play with gravity, emitters, collectors, vehicles, wheels, rigid bodies, elastics, PNG-as-material imports, fun visual styles, session recording and playback, and more!
Drop any PNG in and it becomes matter. Light a fuse and watch it carry fire to your nitro-bomb!
It includes a 1:1 recreation of the OE-CAKE interface (select Classic mode at the top!) and even lets you import your old OE-CAKE .oec files directly. I would say OE-CAKE parity is around 93%, and getting better all the time.
Oh , and there's a brand new, open-source spaceship under the hood...
SunaEngine (AGPL): engine.sunabox.dev / github.com/DARIENBATHALTER/sunaengine
SunaEngine is a novel, cross-platform particle physics simulator that relies on integer calculations (rather than floating-point) and order-independent accumulation to always deliver the same result in any WebGPU-compatible browser.
SunaBox takes advantage of this by letting you export recordings of your sessions as lightweight .sunar files, which only needs to store the simulator's initial state plus your inputs. Recorded and shared simulations can be scrubbed back and forth smoothly like video, and they always play back exactly the same, on any device, *bit-identically*.
This enables all sorts of interesting possibilities, like low-latency, cross-platform multiplayer physics! If every machine calculates physics the same way, then the physics data doesn't need to be streamed over the network, only the inputs.
Replay hashes have been verified matching across Apple M series, an iPhone, a Steam Deck (AMD), Intel Integrated and NVIDIA (RTX 2070S).
Our workflow was fairly simple: I came up with the ideas, Claude did the math, the code, and the adversarial review. I provide the qualia-type feedback, shaping and tuning the feel of everything in the sandbox:
You can also wishlist SunaBox on Steam! 140k particle caps, community/workshop features, hardware optimization, and more, coming soon!

