PhysicsSleep
Since 0.6
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
linear | number | no | Speed, in metres per second, that the fastest point of a body must stay under to count as resting (Rapier's normalized linear threshold, which also folds in spin). 0 or more. | ||
angular | number | no | Spin, in radians per second, under which a body with no collider counts as resting. Bodies with colliders use linear for spin too. 0 or more. | ||
after | number | no | Seconds a body must stay resting before it sleeps. 0 or more. |