---
title: SCNPhysicsSliderJoint
framework: scenekit
role: symbol
role_heading: Class
path: scenekit/scnphysicssliderjoint
---

# SCNPhysicsSliderJoint

A physics behavior that connects two bodies and allows them to slide against each other and rotate around their connecting points.

## Declaration

```swift
class SCNPhysicsSliderJoint
```

## Overview

Overview A slider joint can have zero, one, or two degrees of freedom depending on whether you allow it to slide or rotate. You can also use a slider joint to pin a body so that it can move only by sliding a specific axis in the coordinate space of the node containing it. You can also use a slider joint as a motor, applying a force or torque to the bodies it connects.

## Topics

### Creating a Slider Joint

- [init(bodyA:axisA:anchorA:bodyB:axisB:anchorB:)](scenekit/scnphysicssliderjoint/init(bodya:axisa:anchora:bodyb:axisb:anchorb:).md)
- [init(body:axis:anchor:)](scenekit/scnphysicssliderjoint/init(body:axis:anchor:).md)

### Managing the Characteristics of a Slider Joint

- [bodyA](scenekit/scnphysicssliderjoint/bodya.md)
- [axisA](scenekit/scnphysicssliderjoint/axisa.md)
- [anchorA](scenekit/scnphysicssliderjoint/anchora.md)
- [bodyB](scenekit/scnphysicssliderjoint/bodyb.md)
- [axisB](scenekit/scnphysicssliderjoint/axisb.md)
- [anchorB](scenekit/scnphysicssliderjoint/anchorb.md)

### Limiting the Motion of a Slider Joint

- [minimumLinearLimit](scenekit/scnphysicssliderjoint/minimumlinearlimit.md)
- [maximumLinearLimit](scenekit/scnphysicssliderjoint/maximumlinearlimit.md)
- [minimumAngularLimit](scenekit/scnphysicssliderjoint/minimumangularlimit.md)
- [maximumAngularLimit](scenekit/scnphysicssliderjoint/maximumangularlimit.md)

### Applying Forces and Torques

- [motorTargetLinearVelocity](scenekit/scnphysicssliderjoint/motortargetlinearvelocity.md)
- [motorMaximumForce](scenekit/scnphysicssliderjoint/motormaximumforce.md)
- [motorTargetAngularVelocity](scenekit/scnphysicssliderjoint/motortargetangularvelocity.md)
- [motorMaximumTorque](scenekit/scnphysicssliderjoint/motormaximumtorque.md)

## Relationships

### Inherits From

- [SCNPhysicsBehavior](scenekit/scnphysicsbehavior.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

### Joints

- [SCNPhysicsHingeJoint](scenekit/scnphysicshingejoint.md)
- [SCNPhysicsBallSocketJoint](scenekit/scnphysicsballsocketjoint.md)
- [SCNPhysicsConeTwistJoint](scenekit/scnphysicsconetwistjoint.md)
