Physics.sleepAngularVelocity 静止角速度

static var sleepAngularVelocity : float


The default angular velocity, below which objects start sleeping (default 0.14). Must be positive.

如果物体的角速度在这个速度设定值之下,物体将进入静止状态。默认0.14。 取值范围0到无穷大。必须为正数。

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

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

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.sleepAngularVelocity = 0.1F;
Physics.sleepAngularVelocity = 0.1;
Page last updated: 2011-4-9