bodyAreaConstraint

Adds a body area constraint to the body, ensuring that its area remains close to a target rest area during simulation. The constraint includes compliance and uses iterative solving to maintain this condition.

Parameters

configure

A lambda function used to configure the BodyAreaConstraint instance before it is added to the body's constraints list.