# Sandbox.UprightJoint

Constrains a physics body to stay upright relative to another body or the world.
Uses a spring to keep the Z-axes of both bodies parallel.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Joint](/api/Sandbox.Joint)
- Modifiers: sealed

## Constructors

- [`UprightJoint`](/api/Sandbox.UprightJoint/.ctor)

## Properties

- [`DampingRatio`](/api/Sandbox.UprightJoint/DampingRatio): Spring damping ratio (non-dimensional). A value of 1 is critically damped; values below 1 are springy, values above 1 are over-damped.
- [`Hertz`](/api/Sandbox.UprightJoint/Hertz): Spring stiffness in cycles per second (Hertz). Higher values make the joint stiffer and snap back faster.
- [`MaxTorque`](/api/Sandbox.UprightJoint/MaxTorque): Maximum torque the joint can apply in newton-meters. Set to 0 for unlimited torque.
