Constraint solver configuration data.
More...
#include <ContactSolver.hpp>
Constraint solver configuration data.
Defines how a constraint solver should resolve a given constraint.
- See also
- SolvePositionConstraint.
◆ UseAngularSlop()
◆ UseLinearSlop()
◆ UseMaxAngularCorrection()
◆ UseMaxLinearCorrection()
◆ UseResolutionRate()
◆ angularSlop
Angular slop.
- Note
- Recommended value:
DefaultAngularSlop
.
◆ linearSlop
Linear slop.
- Note
- The negative of this amount is the maximum amount of separation to create.
-
Recommended value:
DefaultLinearSlop
.
◆ maxAngularCorrection
Maximum angular correction.
Maximum angular position correction used when solving constraints. Helps to prevent overshoot.
- Note
- Recommended value:
angularSlop * 4
.
◆ maxLinearCorrection
Maximum linear correction.
Maximum amount of overlap to resolve in a single solver call. Helps prevent overshoot.
- Note
- Recommended value:
linearSlop * 40
.
◆ resolutionRate
Resolution rate.
Defines the percentage of the overlap that should get resolved in a single solver call. Value greater than zero and less than or equal to one. Ideally this would be 1 so that overlap is removed in one time step. However using values close to 1 often leads to overshoot.
- Note
- Recommended values are:
0.2
for solving regular constraints or 0.75
for solving TOI constraints.
The documentation for this struct was generated from the following file: