Rigidbody.sleepAngularVelocity 休眠角速度

var sleepAngularVelocity : float

Description描述

The angular 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.sleepAngularVelocity = 0.1F;

	}

}
rigidbody.sleepAngularVelocity = 0.1;
Page last updated: 2011-2-9
Rigidbody.sleepAngularVelocity 休眠角速度_unity3d游戏脚本制作教程-游戏蛮牛出品

Rigidbody.sleepAngularVelocity 休眠角速度

var sleepAngularVelocity : float

Description描述

The angular 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.sleepAngularVelocity = 0.1F;

	}

}
rigidbody.sleepAngularVelocity = 0.1;
Page last updated: 2011-2-9