<!--
{
  "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/isTranslationLocked",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20PhysicsBodyComponentV19isTranslationLockedSb1x_Sb1ySb1ztvp"
  },
  "title" : "isTranslationLocked"
}
-->

# isTranslationLocked

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

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

## Discussion

You can restrict movement of the body along one or more axes by setting
the corresponding item in the tuple to `true`. For example, if you set
the `x` and the `z` items in the tuple to `true`, then the body can move
only along the y-axis. By default, movement 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)