struct LimitCommon

Contains common values used by all Joint limit types.

Public

Constructors

LimitCommon

LimitCommon(float contactDist = -1.F)

LimitCommon

LimitCommon(const Spring &spring, float restitution = 0.F)

Fields

ContactDist

float ContactDist

Distance from the limit at which it becomes active.

Allows the solver to activate earlier than the limit is reached to avoid breaking the limit.

Restitution

float Restitution

Controls how do objects react when the limit is reached, values closer to zero specify non-ellastic collision, while those closer to one specify more ellastic (i.e bouncy) collision.

Must be in [0, 1] range.

Spring

Spring that controls how are the bodies pulled back towards the limit when they breach it.