|
||||||||||||||||
|
||||||||||||||||
Physics.sleepAngularVelocity
static var sleepAngularVelocity : floatDescriptionThe 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
Physics.sleepAngularVelocity = 0.1;
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 |
|
|||||||||||||||