Closed isaac-mason closed 2 months ago
I'm also seeing the same, where I see collision events for many steps before I see a contact force event. Setting numSolverIterations
to 1 is the only way to make sure I see contact force events when I expect to.
This is a bug. The new solver runs multiple sub-steps for calculating forces, and the reported impulses don’t account for all the substeps.
This will be fixed by https://github.com/dimforge/rapier/pull/607
In the process of updating @react-three/rapier from @dimforge/rapier3d-compat 0.11.2 to 0.12.0 we've noticed a difference in contact force behaviour.
Below is a minimal reproduction. Between 0.11.2 and 0.12.0 we get very different contact force values with default world integration parameters. When we set
world.numSolverIterations = 1
in 0.12.0, the behaviour returns to what we get from 0.11.2 defaults.I'm looking to understand if this is intended behaviour.