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

# SKPhysicsJointSliding

A joint that allows two physics bodies to slide along an axis.

```
class SKPhysicsJointSliding
```

## Overview

An [`SKPhysicsJointSliding`](/documentation/SpriteKit/SKPhysicsJointSliding) object allows the anchor points of the two physics bodies to slide along a chosen axis. The joint can be configured to limit the distance that the two objects are allowed to slide along the axis.

## Topics

### Creating a Sliding Joint

[`joint(withBodyA:bodyB:anchor:axis:)`](/documentation/SpriteKit/SKPhysicsJointSliding/joint(withBodyA:bodyB:anchor:axis:))

Creates a new sliding joint.

### Configuring a Sliding Joint

[`shouldEnableLimits`](/documentation/SpriteKit/SKPhysicsJointSliding/shouldEnableLimits)

A Boolean value that indicates whether the sliding joint is restricted so that the objects may only slide a finite distance from the initial anchor point.

[`lowerDistanceLimit`](/documentation/SpriteKit/SKPhysicsJointSliding/lowerDistanceLimit)

The smallest distance allowed for the sliding joint.

[`upperDistanceLimit`](/documentation/SpriteKit/SKPhysicsJointSliding/upperDistanceLimit)

The largest distance allowed for the sliding 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)