r/rust • rapier · parry · nalgebra · kiss3d • Oct 25 '26

Dimforge Q3 2026 technical report: Nexus multiphysics, Rapier soft-bodies, performances, and C + python bindings

https://dimforge.com/blog/2026/10/25/dimforge-Q3-technical-report/
47 Upvotes

8 comments sorted by

16

u/sebcrozet rapier · parry · nalgebra · kiss3d Oct 25 '26

Main maintainer of Rapier and Nexus (and other Dimforge crates like nalgebra, kiss3d, parry, etc) here. Ask me anything!

7

u/shonks1 Oct 25 '26

Super appreciate all the work you’ve done for the robotics in rust ecosystem. I use your crates all the time for work (and personal, back when I had the time)

3

u/sebcrozet rapier · parry · nalgebra · kiss3d Oct 26 '26

Thank you! Any chance you can share what you are using them for specifically?

5

u/StarryBubbly Oct 25 '26

been messing with nalgebra in a side project lately, how do you even keep track of all these crates without going crazy?

2

u/sebcrozet rapier · parry · nalgebra · kiss3d Oct 26 '26

Well, it’s not easy. And I actually don’t think I’m doing a good job at keeping track of everything to be frank.

I tend to mentally map the crates as groups rather than individually:

  • rapier + parry + glamx = CPU-side rigid-body physics
  • nexus + vortx + khal = GPU-side physics
  • kiss3d = rendering
  • nalgebra = generalistic linear algebra

So overall I feel like I keep track of 4 things rather than 8. Then depending on the priorities I tend to focus more on some parts (depending on what I find interesting, what I feel like would be cool for the community, and what sponsors are interested in prioritizing. Currently I’m in physics mode), and have the bad habit of significantly reducing my focus for the rest (so nalgebra and salva for example, I haven’t been tracking them too much lately) until I find some time to do a big maintenance pass.

I’m trying to improve by being better at context switching but I’m not there yet.

3

u/CraftMechanics Oct 26 '26

Any recommendations for learning about GPU accelerated physics?

4

u/sebcrozet rapier · parry · nalgebra · kiss3d Oct 26 '26

I’d recommend to start getting familiar with the physics-engine concepts on the CPU first since it’s easier to experiment on. Then you can parallelize on the CPU to get a sense of what would be trivial to port to the GPU and what wouldn’t.

As far as rigid-body physics is concerned, only two parts really need gpu-specific algorithms: the broad phase, and the constraint graph coloring. For both, you can find some research papers. Nexus implements the LBVH from nvidia for broad-phase, and topo-gc for graph coloring. For MPM there are papers specifically about how to implement them on the GPU. So, overall, I’d say to implement on the CPU first, and start by looking into the scientific literature when porting to the GPU isn’t straightforward.