---
title: SKPhysicsJointSliding
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/skphysicsjointsliding
---

# SKPhysicsJointSliding

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

## Declaration

```swift
class SKPhysicsJointSliding
```

## Overview

Overview An 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:)](spritekit/skphysicsjointsliding/joint(withbodya:bodyb:anchor:axis:).md)

### Configuring a Sliding Joint

- [shouldEnableLimits](spritekit/skphysicsjointsliding/shouldenablelimits.md)
- [lowerDistanceLimit](spritekit/skphysicsjointsliding/lowerdistancelimit.md)
- [upperDistanceLimit](spritekit/skphysicsjointsliding/upperdistancelimit.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)
- [SKPhysicsJointSpring](spritekit/skphysicsjointspring.md)
