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

function Sleep () : void

Description

Forces a rigidbody to sleep at least one frame.

A common use is to call this from Awake in order to make a rigidbody sleep at startup. See Rigidbody Sleeping for more information.

JavaScript
rigidbody.Sleep();

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
rigidbody.Sleep();
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
rigidbody.Sleep()