Rigidbody.IsSleeping
IsSleeping(): bool;
bool IsSleeping();
def IsSleeping() as bool
Description

Is the rigidbody sleeping?

See Rigidbody Sleeping for more information.
	if (rigidbody.IsSleeping())
	   print("Sleeping");
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Example() {
        if (rigidbody.IsSleeping())
            print("Sleeping");
        
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Example() as void:
		if rigidbody.IsSleeping():
			print('Sleeping')