BoundaryNodeRelaxForce

BoundaryNodeRelaxForce is a type of force that acts on the boundary nodes of a Body. It aims to relax the boundary nodes by adjusting their velocities based on neighboring node positions. Each boundary node is influenced by the midpoint of its neighboring boundary nodes, providing a smoothing effect.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Controls the intensity of the relaxation force. A higher strength results in greater adjustment of the node velocities.

Functions

Link copied to clipboard
open suspend override fun apply(body: Body, dt: Double)
Link copied to clipboard
open suspend override fun initializeFrame(body: Body)