---
title: "init(pin0:pin1:angularLimit:checksForInternalCollisions:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicsrevolutejoint/init(pin0:pin1:angularlimit:checksforinternalcollisions:)"
---

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

Creates a new revolute joint.

## Declaration

```swift
init(pin0: GeometricPin, pin1: GeometricPin, angularLimit: 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.
- `angularLimit`: Limits of the rotation around the pin’s x-axis if defined.
- `checksForInternalCollisions`: A Boolean that indicates whether the joint checks for collisions between the two doc://com.apple.RealityKit/documentation/RealityKit/Entity instances.
