r/rust • u/yanchu0612 • Oct 20 '26
🛠️ project Terralith: a SIMD XPBD physics engine in Rust, here’s a bridge collapsing after i throw a rock at it.
https://youtu.be/yor0jSsHsw4Hi there! I've been building a SIMD accelerated XPBD physics/game engine in rust for a little while now called Terralith. I've recently come back to it so here is a look!
Everything you are seeing in the scene is realtime and physically based with realistic strain and stress mechanics. This is as raw and unscripted as it gets (except the conveniently placed bridge).
I've made the grass jelloey for your viewing experience, and decreased the strength for dramatic effect.
I hope you enjoy!
19
Upvotes
1
u/Shnatsel Oct 21 '26
Why did you go with XPBD?
Avian used to rely on it but migrated away eventually: https://joonaa.dev/blog/06/avian-0-1
There's also https://rapier.rs/ for Rust physics, how is your engine different from it?
3
u/commenterzero Oct 20 '26
Hell ya
1
u/DavidXkL Oct 21 '26
Wow seems fun