Time a group of bodies must remain idle in order to fall asleep. Enabling sleeping also implicitly enables the the contact graph. The default value of INFINITY disables the sleeping algorithm.

cpSpaceSetSleepTimeThreshold(space, sleepTimeThreshold)

Arguments

space

[cpSpace *]

sleepTimeThreshold

[cpFloat]

Details

C function prototype: CP_EXPORT void cpSpaceSetSleepTimeThreshold(cpSpace *space, cpFloat sleepTimeThreshold);