---
title: PhysicsJointsComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/physicsjointscomponent
---

# PhysicsJointsComponent

A component that stores physics joints which RealityKit simulates.

## Declaration

```swift
struct PhysicsJointsComponent
```

## Overview

Overview Add this component to an entity, or any child of an entity, that has a PhysicsSimulationComponent. All joints in the PhysicsJointsComponent need to reference entities under the same PhysicsSimulationComponent tree. Add a joint to the correct PhysicsJointsComponent instance by calling its PhysicsJoint/addToSimulation()-886c4 method.

## Topics

### Initializers

- [init()](realitykit/physicsjointscomponent/init().md)

### Instance Properties

- [joints](realitykit/physicsjointscomponent/joints.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [Equatable](swift/equatable.md)

## See Also

### Pin and joint components

- [Simulating physics joints in your RealityKit app](realitykit/simulating-physics-joints-in-your-realitykit-app.md)
- [GeometricPin](realitykit/geometricpin.md)
- [GeometricPinsComponent](realitykit/geometricpinscomponent.md)
- [PhysicsJoint](realitykit/physicsjoint.md)
- [EntityGeometricPins](realitykit/entitygeometricpins.md)
- [AttachedTransformComponent](realitykit/attachedtransformcomponent.md)
