A joint that allows two physics bodies to slide along an axis.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
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.
Configuring a Sliding Joint
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.
The abstract superclass for objects that connect physics bodies.
A joint that imposes a maximum distance between two physics bodies, as if they were connected by a rope.
A joint that pins together two physics bodies, allowing independent rotation.