<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsBodyComponent/isRotationLocked",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20PhysicsBodyComponentV16isRotationLockedSb1x_Sb1ySb1ztvp"
  },
  "title" : "isRotationLocked"
}
-->

# isRotationLocked

A tuple of Boolean values that you use to lock rotation of the physics
body around any of the three axes.

```
var isRotationLocked: (x: Bool, y: Bool, z: Bool)
```

## Discussion

For any one of the three Booleans in the tuple that you set to `true`,
rotation is restricted on the axis represented by that item. For
example, if you set the `x` item to true, then the body can’t rotate
around the x-axis. By default, rotation isn’t restricted.

---

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)