# Sandbox.PhysicsBody.AutoSleep

```csharp
bool AutoSleep { get; set; }
```

Whether this body is allowed to automatically go into "sleep" after a certain amount of time of inactivity.
[Sandbox.PhysicsBody.Sleeping](/api/Sandbox.PhysicsBody/Sleeping) for more info on the sleep mechanic.

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
