---
title: "add(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skphysicsworld/add(_:)"
---

# add(_:)

Adds a joint to the physics world.

## Declaration

```swift
func add(_ joint: SKPhysicsJoint)
```

## Parameters

- `joint`: The joint to add.

## Mentioned in

Connecting Bodies with Joints

## Discussion

Discussion For a joint to take effect, it must be added to the physics world.

## See Also

### Joining Physics Bodies with Joints

- [removeAllJoints()](spritekit/skphysicsworld/removealljoints().md)
- [remove(_:)](spritekit/skphysicsworld/remove(_:).md)
