SimulationClock

A custom clock that drives the physics simulation. By default, the engine clock is used.

Constructors

Link copied to clipboard
constructor(fixedTimeStep: Float = 0.02f, maxTimeStep: Float = 0.33f, timeSpeed: Float = 1.0f)
constructor(other: SimulationClock)

Constructs a SimulationClock instance with another instance.

Properties

Link copied to clipboard
val fixedTimeStep: Float

The fixed interval (in seconds) that determines how often physics calculations will be performed.

Link copied to clipboard
val maxTimeStep: Float

The fixed interval (in seconds) that determines the maximum time step allowed for physics calculations.

Link copied to clipboard
val timeSpeed: Float

The speed at which time progresses. A value of 1 means real-time. A value of 0.5 means half speed.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String