---
title: PhysicsPrismaticJoint
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/physicsprismaticjoint
---

# PhysicsPrismaticJoint

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

## Declaration

```swift
struct PhysicsPrismaticJoint
```

## Overview

Overview PhysicsPrismaticJoint, also called a “slider joint”, allows one linear degree of freedom along the x-axis between two Entity pins. tip: Pass an orientation when creating the GeometricPin instances to change the axis of rotation.

## Topics

### Initializers

- [init(pin0:pin1:linearLimit:checksForInternalCollisions:)](realitykit/physicsprismaticjoint/init(pin0:pin1:linearlimit:checksforinternalcollisions:).md)

### Instance Properties

- [linearLimit](realitykit/physicsprismaticjoint/linearlimit.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [PhysicsJoint](realitykit/physicsjoint.md)

## See Also

### Built-in joint types

- [PhysicsRevoluteJoint](realitykit/physicsrevolutejoint.md)
- [PhysicsSphericalJoint](realitykit/physicssphericaljoint.md)
- [PhysicsCustomJoint](realitykit/physicscustomjoint.md)
- [PhysicsDistanceJoint](realitykit/physicsdistancejoint.md)
- [PhysicsFixedJoint](realitykit/physicsfixedjoint.md)
- [PhysicsJoints](realitykit/physicsjoints.md)
