Force

interface Force(source)

Represents a physical force that can be applied to a Body in a simulation.

Implementing classes define specific behaviors for initializing and applying forces on the Body, altering the state of its nodes over time.

Inheritors

Functions

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