Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsAwake()

Is the rigidbody "awake"?
Read time 1 minuteLast updated 4 days ago

Definition

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

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 awake.