sleepAngularVelocity
The default angular velocity, below which objects start sleeping (default 0.14). Must be positive.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public static float sleepAngularVelocity { get; set; }
Remarks
See the Physics Overview in the manual for more information about Rigidbody sleeping. This can be overridden per rigidbody using Rigidbody.sleepAngularVelocity.
This value is usually changed in inspector instead of from scripts.
Edit->Project Settings->PhysicsExamples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Physics.sleepAngularVelocity = 0.1f; }}