---
title: SCNPhysicsHingeJoint
framework: scenekit
role: symbol
role_heading: Class
path: scenekit/scnphysicshingejoint
---

# SCNPhysicsHingeJoint

A physics behavior that connects two bodies and allows them to pivot around each other on a single axis.

## Declaration

```swift
class SCNPhysicsHingeJoint
```

## Overview

Overview A hinge has a single degree of freedom (rotation). You can also use a hinge joint to pin a body so that it can only move by rotating around a specific axis in the coordinate space of the node containing it.

## Topics

### Creating a Hinge Joint

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

### Managing the Characteristics of a Hinge Joint

- [bodyA](scenekit/scnphysicshingejoint/bodya.md)
- [axisA](scenekit/scnphysicshingejoint/axisa.md)
- [anchorA](scenekit/scnphysicshingejoint/anchora.md)
- [bodyB](scenekit/scnphysicshingejoint/bodyb.md)
- [axisB](scenekit/scnphysicshingejoint/axisb.md)
- [anchorB](scenekit/scnphysicshingejoint/anchorb.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

- [SCNPhysicsSliderJoint](scenekit/scnphysicssliderjoint.md)
- [SCNPhysicsBallSocketJoint](scenekit/scnphysicsballsocketjoint.md)
- [SCNPhysicsConeTwistJoint](scenekit/scnphysicsconetwistjoint.md)
