nodeRepulseInterbodyForce
fun ForceSimulation.nodeRepulseInterbodyForce(configure: NodeRepulseInterbodyForce.() -> Unit): Boolean(source)
Adds a NodeRepulseInterbodyForce to the list of interbody forces in the simulation.
The NodeRepulseInterbodyForce applies a repulsion force between nodes of bodies within a configured search radius, encouraging them to remain apart. The strength and behavior of the force can be customized via the provided configuration block.
Parameters
configure
A lambda to configure the NodeRepulseInterbodyForce instance. Use this block to customize properties such as searchRadius and strength for the force.