(var rate, var maxIter, var TimeStepMethod );
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.
Step rate, a good range is between 50
– 100. ( default: 60 )
Maximum iteration steps, default is 8.
if successful, 0
Note that longer timesteps lead to poor stability in
the simulation, and that values beyond the abovementioned range are
Using fixed time sub steps is very important to ensure
a stable and reproducible simulation and is recommended for this
application, specified using NX_TIMESTEP_FIXED.
When NX_TIMESTEP_VARIABLE is specified, the PhysX SDK
does not divide the time steps, giving the user direct control over
Must be set between
the physX_load() and physX_run() functions.
pX_setsteprate(60, 8, NX_TIMESTEP_FIXED);