Regular API function


Description Adjusts the real time timer of a simulation. This allows correcting for effects that might appear if for a reason or another the simAdvanceSimulationByOneStep cannot be called for some time (for instance during a resize action of the simulator window (the main thread is captured in a modal-type message loop)).
C synopsis simInt simAdjustRealTimeTimer(simInt instanceIndex,simFloat deltaTime)
C parameters
instanceIndex: no use anymore. set to 0.
deltaTime: time correction value in seconds
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis -
Lua parameters
Lua return values

All regular API functions on one page