dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.77k stars 235 forks source link

feat: rework solver parameters to make it easy to recover the old behaviors #581

Closed sebcrozet closed 5 months ago

sebcrozet commented 5 months ago

579 introduced a new non-linear velocity-based constraints solver. This PR reworks the way solver iterations are specified so that some combination of them lets us recover the old solver’s behavior. This is mostly for comparison purpose or for case where the small performance hit of the new solver isn’t acceptable to the user.

For convenience, the following methods were added:

 The new solver is remains the default.