Physics.sleepVelocity 静止速度

static var sleepVelocity : float


The default linear velocity, below which objects start going to sleep (default 0.15). Must be positive.


See Rigidbody Sleeping for more information. This value can be overridden per rigidbody using Rigidbody.sleepVelocity.

参照Rigidbody Sleeping 获取更多信息。用Rigidbody.sleepVelocity可以对每个物体分别设定sleepVelocity值。

This value is usually changed in Edit->Project Settings->Physics inspector instead of from scripts.

这个值常在Edit->Project Settings->Physics 菜单下设定,而不用在脚本中。

using UnityEngine;
using System.Collections;

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