step

expect fun step(timeStep: Float, subStepCount: Int = 4)

Advance the simulation by one time step.

Parameters

timeStep

The time to simulate (typically 1/60 second)

subStepCount

Number of sub-steps for improved accuracy (default: 4)