Creates a new Substepper instance.
Optionalinterval: number = Substepper.defaultIntervalThe fixed interval in milliseconds between sub-steps.
Optionalhandler: (self: Substepper, callIndex: number) => voidThe handler function to be called at each sub-step.
Handler function to be called at each sub-step. Not read-only.
The Substepper instance.
The index of the current sub-step call.
StaticdefaultHandler function to be called at each sub-step. Not read-only.
The Substepper instance.
The index of the current sub-step call.
The fixed interval in milliseconds between sub-steps. Not read-only.
Accumulated time in milliseconds since the last sub-step. Avoid modifying manually.
A utility class for sub-stepping a simulation or game logic at a fixed interval.