Physics.sleepAngularVelocity Manual     Reference     Scripting  
Scripting > Runtime Classes > Physics
Physics.sleepAngularVelocity

static var sleepAngularVelocity : float

Description

The default angular velocity, below which objects start sleeping (default 0.14). Must be positive.

See Rigidbody Sleeping for more information. This can be overridden per rigidbody using Rigidbody.sleepAngularVelocity.

This value is usually changed in Edit->Project Settings->Physics inspector instead of from scripts.

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Physics.sleepAngularVelocity = 0.1F;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Physics.sleepAngularVelocity = 0.1F