<!--
{
  "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/SCNLookAtConstraint/isGimbalLockEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNLookAtConstraint(py)gimbalLockEnabled"
  },
  "title" : "isGimbalLockEnabled"
}
-->

# isGimbalLockEnabled

A Boolean value that specifies whether constrained nodes are allowed to rotate.

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

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, constrained nodes are limited in rotation around a roll axis (the vector pointing from the constrained node to the target node). If the value of this property is <doc://com.apple.documentation/documentation/Swift/false> (the default), constrained nodes rotate freely around this axis when the constraint adjusts their orientation.

For example, when constraining a camera to follow a moving object, setting this property to <doc://com.apple.documentation/documentation/Swift/true> ensures that the horizon remains level from the camera’s point of view.

---

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)