nodeCollisionConstraint

Adds a node collision constraint to the body, configuring it using the provided lambda.

The nodeCollisionConstraint method attaches a NodeCollisionConstraint to the body. This constraint resolves collisions between nodes of the body by enforcing positional corrections based on their physical properties, such as position, radius, and inverse mass. The constraint ensures that nodes do not overlap during the simulation.

Parameters

configure

a lambda to configure the properties of the NodeCollisionConstraint instance, such as setting parameters like compliance to control the flexibility of the collision resolution.