---
title: SKPhysicsJointSpring
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/skphysicsjointspring
---

# SKPhysicsJointSpring

A joint that simulates a spring connecting two physics bodies.

## Declaration

```swift
class SKPhysicsJointSpring
```

## Mentioned in

Getting Started with Spring Joints

## Overview

Overview An SKPhysicsJointSpring object simulates connecting two physics bodies together with a spring. The farther the two objects move from each other, the more force is applied to bring the two bodies back together.

## Topics

### First Steps

- [Getting Started with Spring Joints](spritekit/getting-started-with-spring-joints.md)

### Creating a Spring Joint

- [joint(withBodyA:bodyB:anchorA:anchorB:)](spritekit/skphysicsjointspring/joint(withbodya:bodyb:anchora:anchorb:).md)

### Configuring a Spring Joint

- [damping](spritekit/skphysicsjointspring/damping.md)
- [frequency](spritekit/skphysicsjointspring/frequency.md)

## Relationships

### Inherits From

- [SKPhysicsJoint](spritekit/skphysicsjoint.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Physics Joints

- [Working with Inverse Kinematics](spritekit/working-with-inverse-kinematics.md)
- [SKPhysicsJoint](spritekit/skphysicsjoint.md)
- [SKPhysicsJointFixed](spritekit/skphysicsjointfixed.md)
- [SKPhysicsJointLimit](spritekit/skphysicsjointlimit.md)
- [SKPhysicsJointPin](spritekit/skphysicsjointpin.md)
- [SKPhysicsJointSliding](spritekit/skphysicsjointsliding.md)
