rectangularBoundsConstraint

Adds a rectangular boundary constraint to the body, ensuring that its nodes remain confined within a specified rectangular region during the simulation.

This method sets up and applies a RectangularBoundsConstraint to the body. The constraint can be custom-configured using the passed lambda, allowing modification of boundary properties such as dimensions, bounce factor, compliance, and iterations.

Parameters

configure

a lambda receiving a RectangularBoundsConstraint as this, allowing customization of the constraint's properties.