<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsPrismaticJoint",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhysicsPrismaticJointV"
  },
  "title" : "PhysicsPrismaticJoint"
}
-->

# PhysicsPrismaticJoint

A joint that allows movement along a straight line, similar to a sliding drawer.

```
struct PhysicsPrismaticJoint
```

## Overview

`PhysicsPrismaticJoint`, also called a “slider joint”,
allows one linear degree of freedom along the x-axis between two [`Entity`](/documentation/RealityKit/Entity) pins.

> Tip: Pass an orientation when creating the ``doc://com.apple.RealityKit/documentation/RealityKit/GeometricPin`` instances to change the axis of rotation.

## Topics

### Initializers

[`init(pin0: GeometricPin, pin1: GeometricPin, linearLimit: ClosedRange<Float>?, checksForInternalCollisions: Bool)`](/documentation/RealityKit/PhysicsPrismaticJoint/init(pin0:pin1:linearLimit:checksForInternalCollisions:))

Creates a new prismatic joint.

### Instance Properties

[`var linearLimit: ClosedRange<Float>?`](/documentation/RealityKit/PhysicsPrismaticJoint/linearLimit)

A limit of the translation between the pins in the direction of the x-axis.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`PhysicsJoint`](/documentation/RealityKit/PhysicsJoint)

---

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)