Rigidbody
- AddExplosionForce
- AddForceAtPosition
- AddForce
- AddRelativeForce
- AddRelativeTorque
- AddTorque
- angularDrag
- angularVelocity
- centerOfMass
- ClosestPointOnBounds
- collisionDetectionMode
- detectCollisions
- drag
- freezeRotation
- GetPointVelocity
- GetRelativePointVelocity
- inertiaTensorRotation
- inertiaTensor
- interpolation
- isKinematic
- IsSleeping
- mass
- maxAngularVelocity
- MovePosition
- MoveRotation
- OnCollisionEnter
- OnCollisionExit
- OnCollisionStay
- position
- rotation
- SetDensity
- sleepAngularVelocity
- sleepVelocity
- Sleep
- solverIterationCount
- SweepTestAll
- SweepTest
- useConeFriction
- useGravity
- velocity
- WakeUp
- worldCenterOfMass
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");
最后修改:2011年2月10日 Thursday 20:15