<!--
{
  "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/init(pin0:pin1:linearLimit:checksForInternalCollisions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhysicsPrismaticJointV4pin04pin111linearLimit27checksForInternalCollisionsAcA12GeometricPinV_AISNySfGSgSbtcfc"
  },
  "title" : "init(pin0:pin1:linearLimit:checksForInternalCollisions:)"
}
-->

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

Creates a new prismatic joint.

```
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 [`Entity`](/documentation/RealityKit/Entity) instances.

---

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)