SimulationManager::RewindToState Method

Rewinds to the provided simulation state file.

Syntax

void SimulationManager::RewindToState(
SimulationStateFile@ file,
bool resetCamera = true
)

Parameters

SimulationStateFile@ file
The state file to be restored.

bool resetCamera = true
Optional. If the camera should be reset on rewind.

Return value

None.

Remarks

This function is the same as SimulationManager::RewindToState except that it takes a SimulationStateFile, and that it will also restore previous inputs and ghost states if they were saved in the provided state file.