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

# SKPhysicsJointPin

A joint that pins together two physics bodies, allowing independent rotation.

```
class SKPhysicsJointPin
```

## Overview

An [`SKPhysicsJointPin`](/documentation/SpriteKit/SKPhysicsJointPin) object allows two physics bodies to independently rotate around the anchor point as if pinned together. You can configure how far the two objects may rotate and the resistance to rotation.

## Topics

### Creating a Pin Joint

[`+  jointWithBodyA:bodyB:anchor:`](/documentation/SpriteKit/SKPhysicsJointPin/joint(withBodyA:bodyB:anchor:))

Creates a new pin joint.

### Configuring a Pin Joint

[`rotationSpeed`](/documentation/SpriteKit/SKPhysicsJointPin/rotationSpeed)

The speed, in radians per second, at which the physics bodies are driven around the pin joint.

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

A Boolean value that indicates whether the pin joint’s rotation is limited to a specific range of values.

[`lowerAngleLimit`](/documentation/SpriteKit/SKPhysicsJointPin/lowerAngleLimit)

The smallest angle allowed for the pin joint, in radians.

[`upperAngleLimit`](/documentation/SpriteKit/SKPhysicsJointPin/upperAngleLimit)

The largest angle allowed for the pin joint, in radians.

[`frictionTorque`](/documentation/SpriteKit/SKPhysicsJointPin/frictionTorque)

The resistance applied by the pin joint to spinning around the anchor point.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### Inherits From

[`SKPhysicsJoint`](/documentation/SpriteKit/SKPhysicsJoint)

---

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)