# PhysicsRelativeJointDefinition

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

## Definition

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

```csharp
public struct PhysicsRelativeJointDefinition
```

## Constructors

| Constructor                                                                                                                                                                                   | Description                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsRelativeJointDefinition()](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/ctor.md#physicsrelativejointdefinition\(\))                   | Create a default [PhysicsRelativeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejoint.md) definition.  |
| [PhysicsRelativeJointDefinition(System.Boolean)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/ctor.md#physicsrelativejointdefinition\(bool\)) | Create a default [PhysicsRelativeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejoint.md)] definition. |

## Properties

| Property                                                                                                                                         | Description                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [angularVelocity](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/angularvelocity.md)               | The desired angular velocity.                                                                                             |
| [bodyA](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/bodya.md)                                   | The first body the joint constrains.                                                                                      |
| [bodyB](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/bodyb.md)                                   | The second body the joint constrains.                                                                                     |
| [collideConnected](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/collideconnected.md)             | Whether the shapes on the pair of bodies can come into contact.                                                           |
| [drawScale](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/drawscale.md)                           | Controls the scaling of the joint drawing. Not all joints have scalable elements but those that do will use this scaling. |
| [forceThreshold](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/forcethreshold.md)                 | The force threshold beyond which a joint event will be produced.                                                          |
| [linearVelocity](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/linearvelocity.md)                 | The desired linear velocity.                                                                                              |
| [localAnchorA](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/localanchora.md)                     | The local anchor frame constraint relative to bodyA's origin.                                                             |
| [localAnchorB](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/localanchorb.md)                     | The local anchor frame constraint relative to bodyB's origin.                                                             |
| [maxForce](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/maxforce.md)                             | The maximum linear force, usually in newtons. A value of zero is a special case which turns the limit off.                |
| [maxTorque](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/maxtorque.md)                           | The maximum torque, usually in newton-meters. A value of zero is a special case which turns the limit off.                |
| [springAngularDamping](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springangulardamping.md)     | The spring angular damping. Use 1 for critical damping.                                                                   |
| [springAngularFrequency](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springangularfrequency.md) | The spring angular frequency, in cycles per second. A value of zero is a special case which turns the angular spring off. |
| [springLinearDamping](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springlineardamping.md)       | The spring linear damping. Use 1 for critical damping.                                                                    |
| [springLinearFrequency](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springlinearfrequency.md)   | The spring linear frequency, in cycles per second. A value of zero is a special case which turns the linear spring off.   |
| [springMaxForce](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springmaxforce.md)                 | The spring maximum linear force, usually in newtons. A value of zero is a special case which turns the force limit off.   |
| [springMaxTorque](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/springmaxtorque.md)               | The spring maximum torque, usually in newton-meters. A value of zero is a special case which turns the torque limit off.  |
| [torqueThreshold](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/torquethreshold.md)               | The torque threshold beyond which a joint event will be produced.                                                         |
| [tuningDamping](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/tuningdamping.md)                   | Controls the joint stiffness damping, non-dimensional. Use 1 for critical damping.                                        |
| [tuningFrequency](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/tuningfrequency.md)               | Controls the joint stiffness frequency, in cycles per second.                                                             |

## Static Properties

| Property                                                                                                                               | Description                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [defaultDefinition](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejointdefinition/defaultdefinition.md) | Create a default [PhysicsRelativeJoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrelativejoint.md) definition. |
