Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

ChipmunkBody.isSleeping

var isSleeping : bool

Description

Indicates if the rigid body is sleeping or not.

A rigid body is put to sleep when it stops moving. It won't be updated each frame and it will consume very little CPU time. Sleeping bodies wake up automatically when touched by another body. You can call body.isSleeping = true to force a body to fall asleep immediately. See also Chipmunk.idleSpeedThreshold and Chipmunk.sleepTimeThreshold