<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKPhysicsJointSpring",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPhysicsJointSpring"
  },
  "title" : "SKPhysicsJointSpring"
}
-->

# SKPhysicsJointSpring

A joint that simulates a spring connecting two physics bodies.

```
class SKPhysicsJointSpring
```

## Overview

An [`SKPhysicsJointSpring`](/documentation/SpriteKit/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](/documentation/SpriteKit/getting-started-with-spring-joints)

Connect two physics bodies with a spring joint.

### Creating a Spring Joint

[`+  jointWithBodyA:bodyB:anchorA:anchorB:`](/documentation/SpriteKit/SKPhysicsJointSpring/joint(withBodyA:bodyB:anchorA:anchorB:))

Creates a new spring joint.

### Configuring a Spring Joint

[`damping`](/documentation/SpriteKit/SKPhysicsJointSpring/damping)

Defines how the spring’s motion should be damped due to the forces of friction.

[`frequency`](/documentation/SpriteKit/SKPhysicsJointSpring/frequency)

Defines the frequency or stiffness characteristics of the spring.

## Relationships

### Conforms To

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

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

### Inherits From

[`SKPhysicsJoint`](/documentation/SpriteKit/SKPhysicsJoint)

---

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)