# Sleep()

> Make the rigidbody "sleep".

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public void Sleep()
```

### Remarks

*Sleeping* is an optimisation that is used to temporarily remove an object from physics simulation when it is at rest. This function makes the rigidbody sleep - it is sometimes desirable to enable this manually rather than allowing automatic sleeping with the *sleepMode* property.

Additional Resources: [Rigidbody2D.IsSleeping](/engine/6000.6/script-reference/unityengine/rigidbody2d/issleeping.md), [Rigidbody2D.WakeUp](/engine/6000.6/script-reference/unityengine/rigidbody2d/wakeup.md), [Rigidbody2D.sleepMode](/engine/6000.6/script-reference/unityengine/rigidbody2d/sleepmode.md).
