---
title: "init(pin0:pin1:linearLimit:checksForInternalCollisions:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicsprismaticjoint/init(pin0:pin1:linearlimit:checksforinternalcollisions:)"
---

# init(pin0:pin1:linearLimit:checksForInternalCollisions:)

Creates a new prismatic joint.

## Declaration

```swift
init(pin0: GeometricPin, pin1: GeometricPin, linearLimit: ClosedRange<Float>? = nil, checksForInternalCollisions: Bool = false)
```

## Parameters

- `pin0`: The local position and orientation on the first entity.
- `pin1`: The local position and orientation on the second entity.
- `linearLimit`: A limit of the the translation of pin1 from pin0 in the direction of the x-axis of pin0.
- `checksForInternalCollisions`: A Boolean that indicates whether the joint checks for collisions between the two doc://com.apple.RealityKit/documentation/RealityKit/Entity instances.
