Rigidbody.sleepVelocity 休眠速度

var sleepVelocity : float

Description描述

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

线性速度,低于该值的物体将开始休眠。(默认0.14)范围{0, infinity}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		rigidbody.sleepVelocity = 0.1F;
	}
}
rigidbody.sleepVelocity = 0.1;
Page last updated: 2011-2-9