<!--
{
  "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/PhysicsCustomJoint/init(pin0:pin1:linearMotionAlongX:linearMotionAlongY:linearMotionAlongZ:angularMotionAroundX:angularMotionAroundY:angularMotionAroundZ:checksForInternalCollisions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18PhysicsCustomJointV4pin04pin118linearMotionAlongX0hiJ1Y0hiJ1Z07angularI7AroundX0kiL1Y0kiL1Z27checksForInternalCollisionsAcA12GeometricPinV_AnC0I5LimitOA5PSbtcfc"
  },
  "title" : "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.

```
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 [`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)