---
title: "init(pin0:pin1:linearMotionAlongX:linearMotionAlongY:linearMotionAlongZ:angularMotionAroundX:angularMotionAroundY:angularMotionAroundZ:checksForInternalCollisions:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicscustomjoint/init(pin0:pin1:linearmotionalongx:linearmotionalongy:linearmotionalongz:angularmotionaroundx:angularmotionaroundy:angularmotionaroundz:checksforinternalcollisions:)"
---

# init(pin0:pin1:linearMotionAlongX:linearMotionAlongY:linearMotionAlongZ:angularMotionAroundX:angularMotionAroundY:angularMotionAroundZ:checksForInternalCollisions:)

Creates a new custom joint.

## Declaration

```swift
init(pin0: GeometricPin, pin1: GeometricPin, linearMotionAlongX: PhysicsCustomJoint.MotionLimit = .fixed, linearMotionAlongY: PhysicsCustomJoint.MotionLimit = .fixed, linearMotionAlongZ: PhysicsCustomJoint.MotionLimit = .fixed, angularMotionAroundX: PhysicsCustomJoint.MotionLimit = .fixed, angularMotionAroundY: PhysicsCustomJoint.MotionLimit = .fixed, angularMotionAroundZ: PhysicsCustomJoint.MotionLimit = .fixed, checksForInternalCollisions: Bool = false)
```

## Parameters

- `pin0`: The local position and orientation on the first entity.
- `pin1`: The local position and orientation on the second entity.
- `linearMotionAlongX`: The linear motion limits along the x-axis.
- `linearMotionAlongY`: The linear motion limits along the y-axis.
- `linearMotionAlongZ`: The linear motion limits along the z-axis.
- `angularMotionAroundX`: The angular motion limits around the x-axis.
- `angularMotionAroundY`: The angular motion limits around the y-axis.
- `angularMotionAroundZ`: The angular motion limits around the z-axis.
- `checksForInternalCollisions`: A Boolean that indicates whether the joint checks for collisions between the two doc://com.apple.RealityKit/documentation/RealityKit/Entity instances.
