Step

class Step(val dt: Double, val input: Input)

One step of the simulation: the step's duration paired with the input sampled for it.

Established as the context of each advancement the game loop drives — a function declaring context(step: Step) reads the current step's dt and input without threading them as arguments, and can only be called while a step is underway.

Constructors

Link copied to clipboard
constructor(dt: Double, input: Input)

Properties

Link copied to clipboard
val dt: Double

The step's duration in seconds.

Link copied to clipboard

The input sampled for this step.