---
title: PhysicsSphericalJoint
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/physicssphericaljoint
---

# PhysicsSphericalJoint

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

## Declaration

```swift
struct PhysicsSphericalJoint
```

## Overview

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. 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 GeometricPin instances to change the axis of rotation.

## Topics

### Initializers

- [init(pin0:pin1:angularLimitInYZ:checksForInternalCollisions:)](realitykit/physicssphericaljoint/init(pin0:pin1:angularlimitinyz:checksforinternalcollisions:).md)

### Instance Properties

- [angularLimitInYZ](realitykit/physicssphericaljoint/angularlimitinyz.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [PhysicsJoint](realitykit/physicsjoint.md)

## See Also

### Built-in joint types

- [PhysicsRevoluteJoint](realitykit/physicsrevolutejoint.md)
- [PhysicsPrismaticJoint](realitykit/physicsprismaticjoint.md)
- [PhysicsCustomJoint](realitykit/physicscustomjoint.md)
- [PhysicsDistanceJoint](realitykit/physicsdistancejoint.md)
- [PhysicsFixedJoint](realitykit/physicsfixedjoint.md)
- [PhysicsJoints](realitykit/physicsjoints.md)
