LinkLengthConstraint
class LinkLengthConstraint(val body: Body, var compliance: Double = 0.0, var iterations: Int = 1) : Constraint(source)
A constraint that enforces the lengths of links between nodes within a Body.
The LinkLengthConstraint ensures that links connecting nodes in the Body adhere to their defined rest lengths. It computes corrections over a number of iterations to resolve any deviations in length while considering compliance, which introduces flexibility into the system.