SimulationManager::SetSimulationTimeLimit Method
Sets the simulation time limit.
Syntax
void SimulationManager::SetSimulationTimeLimit(
int timeMs
)
Parameters
int timeMs
The new time limit in milliseconds. -1
to reset to the original limit.
Return value
None.
Remarks
Note: this method may not work correctly with some replays.
This allows for setting an arbitrary time limit for the running simulation, making the game stop the simulation after the provided time limit is exhausted.
By default, this limit is set to the finish time of the original replay (taken from events duration found in the events buffer).
Note that setting the limit to a large value will extend the simulation to that limit, even after the race is finished. Make sure to manage finishing the race according to your application (e.g by rewinding to a state).
To reset the time to the original limit, pass -1.