Rigidbody.IsSleeping Manual     Reference     Scripting  
Scripting > Runtime Classes > Rigidbody
Rigidbody.IsSleeping

function IsSleeping () : bool

Description

Is the rigidbody sleeping?

See Rigidbody Sleeping for more information.

if (rigidbody.IsSleeping())
print("Sleeping");