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.

JavaScript
    Physics.sleepAngularVelocity = 0.1;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
Physics.sleepAngularVelocity = 0.1F