---
title: SKPhysicsJointPin
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/skphysicsjointpin
---

# SKPhysicsJointPin

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

## Declaration

```swift
class SKPhysicsJointPin
```

## Mentioned in

Pinning and Rotating Physics Bodies Connecting Bodies with Joints

## Overview

Overview An 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

- [joint(withBodyA:bodyB:anchor:)](spritekit/skphysicsjointpin/joint(withbodya:bodyb:anchor:).md)

### Configuring a Pin Joint

- [rotationSpeed](spritekit/skphysicsjointpin/rotationspeed.md)
- [shouldEnableLimits](spritekit/skphysicsjointpin/shouldenablelimits.md)
- [lowerAngleLimit](spritekit/skphysicsjointpin/loweranglelimit.md)
- [upperAngleLimit](spritekit/skphysicsjointpin/upperanglelimit.md)
- [frictionTorque](spritekit/skphysicsjointpin/frictiontorque.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)
- [SKPhysicsJointSliding](spritekit/skphysicsjointsliding.md)
- [SKPhysicsJointSpring](spritekit/skphysicsjointspring.md)
