physX_run (var time) : void*

A8 This function lets the PhysX engine run the simulation for a given time step. You should put it in a main loop if you don't use physX_open.

Parameters:

time - time elapsed in seconds since the last call (= time_step/16), or 0 for using a fixed time step.

Returns

Pointer to the NxScene of the current level, can be used to implement further PhysX functions.

Remarks:

Speed:

Slow

Example:

while(1) {
  int loc_n = integer(time_step * 60 / 16) + 1;
  int loc_i = 0;
  for (; loc_i < loc_n; loc_i++)
    physX_run(0);
  wait(1);
}

See also:

physX_load, physX_open