API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTimeStepper

@codexo/exojs-physics / physics / stable

Fixed-timestep accumulator (package-owned; no engine clock dependency). Each frame, advance adds the variable frame delta to an internal accumulator and reports how many whole fixed sub-steps to run (`floor(accumulator / fixedDelta)`), clamped to maxSubSteps. When the clamp trips, the backlog beyond the clamp is discarded so a slow frame cannot cascade into an unbounded catch-up (the "spiral of death"). alpha is the leftover fraction of a step `[0, 1)`, for interpolating bound transforms between sub-steps. The stepper holds no mutable module-level state — two stepper instances are fully independent (world isolation, gate I-1).

4
props
2
methods
0
events
Import
import { TimeStepper } from '@codexo/exojs-physics'

Fixed-timestep accumulator (package-owned; no engine clock dependency). Each frame, advance adds the variable frame delta to an internal accumulator and reports how many whole fixed sub-steps to run (`floor(accumulator / fixedDelta)`), clamped to maxSubSteps. When the clamp trips, the backlog beyond the clamp is discarded so a slow frame cannot cascade into an unbounded catch-up (the "spiral of death").

alpha is the leftover fraction of a step `[0, 1)`, for interpolating bound transforms between sub-steps.

The stepper holds no mutable module-level state — two stepper instances are fully independent (world isolation, gate I-1).

Constructors 1
new(options: TimeStepperOptions): TimeStepper
Methods 2
advance(frameDeltaSeconds: number): number
reset(): void
Properties 4
fixedDelta: number
maxSubSteps: number
accumulator: number
alpha: number
Source