# PhysicsRelativeJointDefinition

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

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public struct PhysicsRelativeJointDefinition
```

## Constructors

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

## Properties

| Property                                                                                                                             | Description                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [angularVelocity](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/angularvelocity.md)               | The desired angular velocity.                                                                                             |
| [bodyA](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/bodya.md)                                   | The first body the joint constrains.                                                                                      |
| [bodyB](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/bodyb.md)                                   | The second body the joint constrains.                                                                                     |
| [collideConnected](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/collideconnected.md)             | Whether the shapes on the pair of bodies can come into contact.                                                           |
| [drawScale](/engine/6000.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/forcethreshold.md)                 | The force threshold beyond which a joint event will be produced.                                                          |
| [linearVelocity](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/linearvelocity.md)                 | The desired linear velocity.                                                                                              |
| [localAnchorA](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/localanchora.md)                     | The local anchor frame constraint relative to bodyA's origin.                                                             |
| [localAnchorB](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/localanchorb.md)                     | The local anchor frame constraint relative to bodyB's origin.                                                             |
| [maxForce](/engine/6000.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/springangulardamping.md)     | The spring angular damping. Use 1 for critical damping.                                                                   |
| [springAngularFrequency](/engine/6000.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/springlineardamping.md)       | The spring linear damping. Use 1 for critical damping.                                                                    |
| [springLinearFrequency](/engine/6000.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/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.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/torquethreshold.md)               | The torque threshold beyond which a joint event will be produced.                                                         |
| [tuningDamping](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/tuningdamping.md)                   | Controls the joint stiffness damping, non-dimensional. Use 1 for critical damping.                                        |
| [tuningFrequency](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/tuningfrequency.md)               | Controls the joint stiffness frequency, in cycles per second.                                                             |
| [worldDrawing](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/worlddrawing.md)                     | Controls whether this joint is automatically drawn when the world is drawn.                                               |

## Static Properties

| Property                                                                                                                   | Description                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [defaultDefinition](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejointdefinition/defaultdefinition.md) | Create a default [PhysicsRelativeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint.md) definition. |
