Closed emilk closed 3 years ago
Hi!
This is a bug I can reproduce. The problem comes from an error in the 3D ball constraint formulation which will result in the simulation breaking if a rigid-body has a non-uniform local inertia (that's why this same demo works fine with a ball shape instead of a capsule).
This will be fixed in the next release of Rapier.
Awesome, thanks for the quick response!
Hello!
I tried setting up capsule as a pendulum like so:
As the code explains it works great when the pendulum is short, but as soon as it gets longer it explodes almost immediately (i.e. diverges to infinity).
I am using the latest
rapier3d = "0.4"
with default everything.