sleepVelocity
The default linear velocity, below which objects start going to sleep (default 0.15). Must be positive.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public static float sleepVelocity { get; set; }
Remarks
See the Physics Overview in the manual for more information about Rigidbody sleeping. This value can be overridden per rigidbody using Rigidbody.sleepVelocity.
This value is usually changed in inspector instead of from scripts.
Edit->Project Settings->PhysicsExamples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Physics.sleepVelocity = 0.1f; }}