Class VariableTimestep<T extends Time>
java.lang.Object
dev.engine.core.module.VariableTimestep<T>
- Type Parameters:
T- the update context type passed to modules
- All Implemented Interfaces:
UpdateStrategy<T>
Variable timestep
UpdateStrategy that fires exactly one update per advance call.
The actual elapsed time (clamped to zero if negative) is passed to the context factory and forwarded to the update callback.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VariableTimestep
-
-
Method Details
-
advance
Description copied from interface:UpdateStrategyAdvances time by the given elapsed seconds and invokesonUpdatefor each computed update step.- Specified by:
advancein interfaceUpdateStrategy<T extends Time>- Parameters:
elapsedSeconds- real wall-clock time elapsed since last advanceonUpdate- callback invoked with the context for each update step
-