# PhysicsHingeJointDefinition

> A joint definition used to specify properties when creating a PhysicsHingeJoint.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public struct PhysicsHingeJointDefinition
```

## Constructors

| Constructor                                                                                                                                                                          | Description                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| [PhysicsHingeJointDefinition()](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/ctor.md#physicshingejointdefinition\(\))                   | Create a default [PhysicsHingeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejoint.md) definition. |
| [PhysicsHingeJointDefinition(System.Boolean)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/ctor.md#physicshingejointdefinition\(bool\)) | Create a default [PhysicsHingeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejoint.md) definition. |

## Properties

| Property                                                                                                                            | Description                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bodyA](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/bodya.md)                         | The first body the joint constrains.                                                                                                                                                                                  |
| [bodyB](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/bodyb.md)                         | The second body the joint constrains.                                                                                                                                                                                 |
| [collideConnected](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/collideconnected.md)   | Whether the shapes on the pair of bodies can come into contact.                                                                                                                                                       |
| [drawScale](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/drawscale.md)                 | Controls the scaling of the joint drawing. Not all joints have scalable elements but those that do will use this scaling.                                                                                             |
| [enableLimit](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/enablelimit.md)             | Enable/disable the joint angle limit.                                                                                                                                                                                 |
| [enableMotor](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/enablemotor.md)             | Enable/disable the joint motor.                                                                                                                                                                                       |
| [enableSpring](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/enablespring.md)           | Enable/Disable the rotational spring.                                                                                                                                                                                 |
| [enableUnpinned](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/enableunpinned.md)       | Enable/Disable unpinned mode where only Body A is affected and body B and its local anchor point is ignored. Body B must still be assigned so it is typical to assign a static ground body, preferably shared/reused. |
| [forceThreshold](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/forcethreshold.md)       | The force threshold beyond which a joint event will be produced.                                                                                                                                                      |
| [localAnchorA](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/localanchora.md)           | The local anchor frame constraint relative to bodyA's origin.                                                                                                                                                         |
| [localAnchorB](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/localanchorb.md)           | The local anchor frame constraint relative to bodyB's origin.                                                                                                                                                         |
| [lowerAngleLimit](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/loweranglelimit.md)     | The lower angle limit, in degrees.                                                                                                                                                                                    |
| [maxMotorTorque](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/maxmotortorque.md)       | The maximum torque the motor can apply, usually in newton-meters.                                                                                                                                                     |
| [motorSpeed](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/motorspeed.md)               | The desired motor speed, usually in degrees per second.                                                                                                                                                               |
| [springDamping](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/springdamping.md)         | The spring damping, non-dimensional. Use 1 for critical damping.                                                                                                                                                      |
| [springFrequency](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/springfrequency.md)     | The spring stiffness frequency, in cycles per second.                                                                                                                                                                 |
| [springTargetAngle](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/springtargetangle.md) | The spring target angle, in degrees.                                                                                                                                                                                  |
| [torqueThreshold](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/torquethreshold.md)     | The torque threshold beyond which a joint event will be produced.                                                                                                                                                     |
| [tuningDamping](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/tuningdamping.md)         | Controls the joint stiffness damping, non-dimensional. Use 1 for critical damping.                                                                                                                                    |
| [tuningFrequency](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/tuningfrequency.md)     | Controls the joint stiffness frequency, in cycles per second.                                                                                                                                                         |
| [upperAngleLimit](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/upperanglelimit.md)     | The upper angle limit, in degrees.                                                                                                                                                                                    |

## Static Properties

| Property                                                                                                                            | Description                                                                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [defaultDefinition](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejointdefinition/defaultdefinition.md) | Create a default [PhysicsHingeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicshingejoint.md) definition. |
