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

# SKPhysicsJointLimit

A joint that imposes a maximum distance between two physics bodies, as if they were connected by a rope.

```
class SKPhysicsJointLimit
```

## Topics

### Creating a Limit Joint

[`joint(withBodyA:bodyB:anchorA:anchorB:)`](/documentation/SpriteKit/SKPhysicsJointLimit/joint(withBodyA:bodyB:anchorA:anchorB:))

Creates a new limit joint.

### Configuring a Limit Joint

[`maxLength`](/documentation/SpriteKit/SKPhysicsJointLimit/maxLength)

The maximum distance allowed between the two physics bodies connected by the limit joint.



---

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)