Rigidbody.IsSleeping 在休眠?

function IsSleeping () : bool

Description描述

Is the rigidbody sleeping?

刚体在休眠么?

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		if (rigidbody.IsSleeping())
			print("Sleeping");

	}
}
if (rigidbody.IsSleeping())
	print("Sleeping");
Page last updated: 2011-2-10