BodyAreaConstraint

constructor(body: Body, compliance: Double = 0.0, iterations: Int = 1)(source)

Creates a BodyAreaConstraint for the specified body.

Parameters

body

The deformable body whose area is constrained.

compliance

The compliance factor that governs the flexibility of the constraint. Higher values allow more deviation from the rest area.

iterations

The number of iterations for solving the constraint in each simulation step.