StepEvent

@Immutable
data class StepEvent(val deltaSeconds: Float, val subSteps: Int, val stepIndex: Long)

Global world step event payload.

Emitted after the physics world advances the simulation time. This event is typically used to:

  • drive UI state derived from the simulation (FPS counters, timers)

  • synchronize external systems with the simulation clock

Parameters

deltaSeconds

Simulated time advanced by this step, in seconds.

subSteps

Number of internal sub-steps performed to reach this advance (engine-defined; commonly used when accumulating variable frame times into fixed timesteps).

stepIndex

Monotonically increasing step counter.

Constructors

Link copied to clipboard
constructor(deltaSeconds: Float, subSteps: Int, stepIndex: Long)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard