<!--
{
  "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/PhysicsSphericalJoint",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhysicsSphericalJointV"
  },
  "title" : "PhysicsSphericalJoint"
}
-->

# PhysicsSphericalJoint

A spherical joint that allows free rotational movement between two entities’ pins.

```
struct PhysicsSphericalJoint
```

## Overview

This joint has three rotational degrees of freedom and
removes all translational degrees of freedom by making the positions of
`pin0` and `pin1` coincide.
This is also called a “ball-socket joint”.

To add limits to the rotational freedom of `pin1`,
define a tuple value for [`angularLimitInYZ`](/documentation/RealityKit/PhysicsSphericalJoint/angularLimitInYZ).
This tuple defines an elliptical cone shape around the x-axis of `pin0`,
which limits the rotational freedom of `pin1`.
The rotation around the x-axis is never limited with this joint.

> Tip: Pass an orientation when creating the ``doc://com.apple.RealityKit/documentation/RealityKit/GeometricPin`` instances to change the axis of rotation.

## Topics

### Initializers

[`init(pin0: GeometricPin, pin1: GeometricPin, angularLimitInYZ: (Float, Float)?, checksForInternalCollisions: Bool)`](/documentation/RealityKit/PhysicsSphericalJoint/init(pin0:pin1:angularLimitInYZ:checksForInternalCollisions:))

Creates a new spherical joint.

### Instance Properties

[`var angularLimitInYZ: (Float, Float)?`](/documentation/RealityKit/PhysicsSphericalJoint/angularLimitInYZ)

A cone-shaped limit of rotational freedom.

## Relationships

### Conforms To

[`PhysicsJoint`](/documentation/RealityKit/PhysicsJoint)

[`Equatable`](/documentation/Swift/Equatable)

---

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)