<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNPhysicsSliderJoint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsSliderJoint"
  },
  "title" : "SCNPhysicsSliderJoint"
}
-->

# SCNPhysicsSliderJoint

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

```
class SCNPhysicsSliderJoint
```

## 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

[`+  jointWithBodyA:axisA:anchorA:bodyB:axisB:anchorB:`](/documentation/SceneKit/SCNPhysicsSliderJoint/init(bodyA:axisA:anchorA:bodyB:axisB:anchorB:))

Creates a slider joint connecting two physics bodies.

[`+  jointWithBody:axis:anchor:`](/documentation/SceneKit/SCNPhysicsSliderJoint/init(body:axis:anchor:))

Creates a slider joint that anchors a single physics body in space and allows it to slide along a specific axis.

### Managing the Characteristics of a Slider Joint

[`bodyA`](/documentation/SceneKit/SCNPhysicsSliderJoint/bodyA)

The first physics body connected by the joint.

[`axisA`](/documentation/SceneKit/SCNPhysicsSliderJoint/axisA)

The axis along which the first body can slide, relative to the node containing it.

[`anchorA`](/documentation/SceneKit/SCNPhysicsSliderJoint/anchorA)

The point at which the joint connects, relative to the node containing the first body.

[`bodyB`](/documentation/SceneKit/SCNPhysicsSliderJoint/bodyB)

The second physics body connected by the joint.

[`axisB`](/documentation/SceneKit/SCNPhysicsSliderJoint/axisB)

The axis along which the second body can slide, relative to the node containing it.

[`anchorB`](/documentation/SceneKit/SCNPhysicsSliderJoint/anchorB)

The point at which the joint connects, relative to the node containing the second body.

### Limiting the Motion of a Slider Joint

[`minimumLinearLimit`](/documentation/SceneKit/SCNPhysicsSliderJoint/minimumLinearLimit)

The minimum distance between the anchor points of the two bodies, relative to their initial positions.

[`maximumLinearLimit`](/documentation/SceneKit/SCNPhysicsSliderJoint/maximumLinearLimit)

The maximum distance between the anchor points of the two bodies, relative to their initial positions.

[`minimumAngularLimit`](/documentation/SceneKit/SCNPhysicsSliderJoint/minimumAngularLimit)

The minimum rotation angle between the two bodies, measured in radians relative to their initial orientations.

[`maximumAngularLimit`](/documentation/SceneKit/SCNPhysicsSliderJoint/maximumAngularLimit)

The maximum rotation angle between the two bodies, measured in radians relative to their initial orientations.

### Applying Forces and Torques

[`motorTargetLinearVelocity`](/documentation/SceneKit/SCNPhysicsSliderJoint/motorTargetLinearVelocity)

The velocity at which the joint’s connected bodies should slide.

[`motorMaximumForce`](/documentation/SceneKit/SCNPhysicsSliderJoint/motorMaximumForce)

The maximum linear force that the joint can apply to its connected bodies, in newtons.

[`motorTargetAngularVelocity`](/documentation/SceneKit/SCNPhysicsSliderJoint/motorTargetAngularVelocity)

The angular velocity at which the joint’s connected bodies should rotate around it.

[`motorMaximumTorque`](/documentation/SceneKit/SCNPhysicsSliderJoint/motorMaximumTorque)

The maximum torque that the joint can apply to its connected bodies, in newton-meters.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### Inherits From

[`SCNPhysicsBehavior`](/documentation/SceneKit/SCNPhysicsBehavior)

---

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)