Bo

Box4D – 4D physics demo using Rust and wgpu

Hacker News

Box4D – 4D physics demo using Rust and wgpu

This is a little physics toy I've been working on off and on for a while. I originally planned on making a more fully featured game of some sort (I suppose I still may some day), but it turns out that writing interesting graphics and physics algorithms is more compelling than the hard work of polishing an actual product. Who knew? While there are plenty of good guides for 2D and 3D graphics and physics, there's not much out there for 4D. In hopes of alleviating that, the code here is arranged such that the commits are more or less a step-by-step guide, with comments for the interesting or tricky parts. While I don't think I came close to the simplicity or clarity of Box2D Lite, I hope it can serve as a useful example to anyone interested in 4D rendering and physics.

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: new, using, code · Missing: mac, agents, macos
62%62% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide · Missing: https docs, excited, just released
58%58% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
38%38% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

tu
tumblebluff, a webgl demo with terrain, physics, and tumbleweeds52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

tumblebluff, a webgl demo with terrain, physics, and tumbleweeds

Hacker News1
Ru
Rust WebAssembly A* Pathfinding Demo67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rust WebAssembly A* Pathfinding Demo

Hacker News12
Ho
How to Annoy Your Coworkers for $42 Using ClojureScript and Rust47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How to Annoy Your Coworkers for $42 Using ClojureScript and Rust

Hacker News74
Bl
Blob, a softbody physics toy in Rust, WASM, SVG57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Blob, a softbody physics toy in Rust, WASM, SVG

Hacker News9
Ge
Geometric patterns in Rust, with a WASM demo52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Geometric patterns in Rust, with a WASM demo

Hacker News4
Ax
Axum web framework for Rust – a demo tutorial55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Axum web framework for Rust – a demo tutorial

Hacker News2
Em
Emulating aarch64 in software using JIT compilation and Rust48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Emulating aarch64 in software using JIT compilation and Rust

Hacker News2
A
A Mindmap of Physics40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Mindmap of Physics

Hacker News6
Ig
Igrepper – Interactive grepping using ncurses and rust59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Igrepper – Interactive grepping using ncurses and rust

Hacker News4
I
I rendered the Rust logo using Rust67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I rendered the Rust logo using Rust

Hacker News3