pX_setautodisable ( var SleepLinearVel, var SleepAngularVel );

This function sets the minimum linear and angular velocities for all currently existing dynamic actors. The PhysX engine simply judges an object to be asleep if its linear and angular velocity are below these thresholds.

Parameters:

SleepLinearVel The linear velocity below which an actor goes to sleep (default: 2).
SleepAngularVel The angular velocity below which an actor goes to sleep (default: 2).

Returns:

Nonzero if successful, 0 otherwise.

Speed:

Fast

Example:

pX_setautodisable ( 8, 8 ); // go to sleep early

See also:

pXent_setvelocity, pXent_setangvelocity