Struct ContactSettings
Solver settings shared by all contacts of a world. Access and modify them through ContactSettings; changes take effect for existing and new contacts alike.
public struct ContactSettings
- Inherited Members
Fields
AllowedPenetration
Penetration depth below which no position correction is applied. Default is 0.01.
public float AllowedPenetration
Field Value
BiasFactor
Fraction of the penetration corrected per step (Baumgarte stabilization). Default is 0.2.
public float BiasFactor
Field Value
BreakThreshold
Maximum tangential drift before a cached contact point is dropped; normal separation is limited to one tenth of this value. Default is 0.02.
public float BreakThreshold
Field Value
CcdRelaxationFactor
Fraction of the predicted gap that CCD contacts allow to close during one step, from 0 (no closing motion) to 1 (allow the full gap to close). Values below 1 leave a small separation margin. Default is 0.9.
public float CcdRelaxationFactor
Field Value
MaximumBias
Maximum separation velocity, in world units per second, that penetration correction adds to a contact. Default is 100.
public float MaximumBias
Field Value
RestitutionThreshold
Minimum approach speed, in world units per second, at which a contact applies restitution. Slower impacts are resolved as fully inelastic, which keeps resting and stacked bodies calm. Lower it for scenes where slow bodies must still bounce, such as billiard balls that have nearly rolled out. CCD contacts do not apply restitution. Default is 1.
public float RestitutionThreshold
Field Value
Properties
Default
The default settings of a new world.
public static ContactSettings Default { get; }