SimulationManager::SaveState Method

Saves the current simulation state of the race.

Syntax

SimulationState@ SimulationManager::SaveState()

Return value

SimulationState@
The saved simulation state.

Remarks

If you just want to modify/inspect current simulation state, use the PlayerInfo, SimulationWheels, SceneVehicleCar and Dyna properties of the SimulationManager instead of calling this method. The method can be called in OnRunStep or OnSimulationStep calls.