ConstraintSettingsStackingFactor Property |
Namespace: DigitalRune.Physics.Settings
Exception | Condition |
---|---|
ArgumentOutOfRangeException | value is negative. |
Stacking objects is difficult for the simulation - especially if the FixedTimeStep is large or the NumberOfConstraintIterations is low. The stacking optimization is a trick to improve the stability of stacking by reducing the gravity acceleration of objects in a stack. If StackingFactor is 0, the optimization is disabled. Non-zero values enable the stacking optimization. Higher values use a more aggressive optimization. Recommended values are 0 - 10.
This stacking optimization is independent from the StackingTolerance optimization.