<!--
{
  "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/SCNPhysicsHingeJoint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsHingeJoint"
  },
  "title" : "SCNPhysicsHingeJoint"
}
-->

# SCNPhysicsHingeJoint

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

```
class SCNPhysicsHingeJoint
```

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

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

Creates a hinge joint connecting two physics bodies.

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

Creates a hinge joint that anchors a single physics body in space and lets it rotate around a specific axis.

### Managing the Characteristics of a Hinge Joint

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

The first physics body connected by the joint.

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

The axis that the hinge pivots around, relative to the node containing the first body.

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

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

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

The second physics body connected by the joint.

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

The axis that the hinge pivots around, relative to the node containing the second body.

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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