<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNPhysicsBody/allowsResting",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsBody(py)allowsResting"
  },
  "title" : "allowsResting"
}
-->

# allowsResting

A Boolean value that specifies whether SceneKit can automatically mark the physics body at rest.

```
var allowsResting: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true> (the default), SceneKit keeps track of whether the body is moving or affected by forces, automatically setting its [`isResting`](/documentation/SceneKit/SCNPhysicsBody/isResting) property to <doc://com.apple.documentation/documentation/Swift/true> when it is “at rest.” The physics simulation runs faster when simulating fewer bodies, so treating a body as resting temporarily removes it from the simulation to improve performance.

SceneKit automatically returns a resting body to the simulation if another body collides with it, if you change its position or velocity, or if you apply a force to it. However, SceneKit uses a faster, less accurate simulation when deciding whether to change a body’s [`isResting`](/documentation/SceneKit/SCNPhysicsBody/isResting) property back to <doc://com.apple.documentation/documentation/Swift/false>. If testing your app reveals unexpected physics behaviors involving resting bodies, changing those bodies’ allowsResting property to <doc://com.apple.documentation/documentation/Swift/false> may improve simulation accuracy.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)