19.9.28 setSleepTimeThreshold

self = physics.Space:setSleepTimeThreshold(sleep)

Parameter

Type

Description

self

in physics.Space

The input simulation Space

sleep

in number

The amount of time (seconds) below which time if a Shape has not moved, it is put to sleep

self

out physics.Space

The input Space is returned as the output

Sleep time threshold is used to calculate when a Body can be put to sleep

Introduced in platform.apiLevel = '2.0'