pX_setsteprate (var rate, var maxIter, var TimeStepMethod );

Simulation is done one time step at a time, typically using a fixed step size ranging between 1/100th of a second and 1/50th of a second. maxIter provides a cap on the number of sub steps executed, per time step. If the number of possible sub steps exceeds maxIter, then maxIter sub steps are executed and the remaining time is added on to the accumulator to be executed on the next time step.

Parameters:

rate Step rate, a good range is between 50 – 100. ( default: 60 )
maxIter Maximum iteration steps, default is 8.
TimeStepMethod NX_TIMESTEP_FIXED
NX_TIMESTEP_VARIABLE
NX_TIMESTEP_INHERIT

Returns:

1 if successful, 0 otherwise.

Remarks:

Speed:

Medium

Example:

physX_load();
pX_setsteprate(60, 8, NX_TIMESTEP_FIXED);
...
physX_run(0);

See also:

pX_setgravity, px_SetWorldSize