pub unsafe extern "C" fn PxScene_simulate_mut(
    self_: *mut PxScene,
    elapsedTime: f32,
    completionTask: *mut PxBaseTask,
    scratchMemBlock: *mut c_void,
    scratchMemBlockSize: u32,
    controlSimulation: bool
) -> bool
Expand description

Advances the simulation by an elapsedTime time.

Large elapsedTime values can lead to instabilities. In such cases elapsedTime should be subdivided into smaller time intervals and simulate() should be called multiple times for each interval.

Calls to simulate() should pair with calls to fetchResults(): Each fetchResults() invocation corresponds to exactly one simulate() invocation; calling simulate() twice without an intervening fetchResults() or fetchResults() twice without an intervening simulate() causes an error condition.

scene->simulate(); …do some processing until physics is computed… scene->fetchResults(); …now results of run may be retrieved.

True if success