ドキュメント

Unity Engine

Unity Engine

IsSleeping()

Is the rigidbody "sleeping"?
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool IsSleeping()

Returns

Type

Description

bool

Remarks

Sleeping is an optimisation that is used to temporarily remove an object from physics simulation when it is at rest. This function tells if the rigidbody is currently sleeping.