文档

Unity Engine

Unity Engine

Sleep()

Forces an articulation body to sleep.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void Sleep()

Remarks

A common use is to call this from Awake in order to make an articulation body sleep at startup. See the Rigidbodies Overview in the manual for more information about Rigidbody/ArticulationBody sleeping.