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

var sleepVelocity : float

Description

The linear velocity, below which objects start going to sleep. (Default 0.14) range { 0, infinity }

See Rigidbody Sleeping for more information.

JavaScript
rigidbody.sleepVelocity = 0.1;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
rigidbody.sleepVelocity = 0.1F