# PhysicsSliderJointDefinition

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

## Definition

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

```csharp
public struct PhysicsSliderJointDefinition
```

## Constructors

| Constructor                                                                                                                                                                 | Description                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsSliderJointDefinition()](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/ctor.md#physicssliderjointdefinition\(\))                   | Create a default [PhysicsSliderJoint](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjoint.md) definition. |
| [PhysicsSliderJointDefinition(System.Boolean)](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/ctor.md#physicssliderjointdefinition\(bool\)) | Create a default [PhysicsSliderJoint](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjoint.md) definition. |

## Properties

| Property                                                                                                                             | Description                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [bodyA](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/bodya.md)                                     | The first body the joint constrains.                                                                                      |
| [bodyB](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/bodyb.md)                                     | The second body the joint constrains.                                                                                     |
| [collideConnected](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/collideconnected.md)               | Whether the shapes on the pair of bodies can come into contact.                                                           |
| [drawScale](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/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.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/enablelimit.md)                         | Enable/disable the joint translation limit.                                                                               |
| [enableMotor](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/enablemotor.md)                         | Enable/disable the joint motor.                                                                                           |
| [enableSpring](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/enablespring.md)                       | Enable/Disable a spring along the slider joint axis.                                                                      |
| [forceThreshold](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/forcethreshold.md)                   | The force threshold beyond which a joint event will be produced.                                                          |
| [localAnchorA](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/localanchora.md)                       | The local anchor frame constraint relative to bodyA's origin.                                                             |
| [localAnchorB](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/localanchorb.md)                       | The local anchor frame constraint relative to bodyB's origin.                                                             |
| [lowerTranslationLimit](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/lowertranslationlimit.md)     | The lower translation limit of this joint. This will be clamped to a lower stable limit.                                  |
| [maxMotorForce](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/maxmotorforce.md)                     | The maximum force the motor can apply, usually in newtons.                                                                |
| [motorSpeed](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/motorspeed.md)                           | The desired motor speed, usually in meters per second.                                                                    |
| [springDamping](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/springdamping.md)                     | The spring damping, non-dimensional. Use 1 for critical damping.                                                          |
| [springFrequency](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/springfrequency.md)                 | The spring stiffness frequency, in cycles per second.                                                                     |
| [springTargetTranslation](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/springtargettranslation.md) | The spring target translation, usually in meters. The spring-damper will drive to this translation.                       |
| [torqueThreshold](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/torquethreshold.md)                 | The torque threshold beyond which a joint event will be produced.                                                         |
| [tuningDamping](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/tuningdamping.md)                     | Controls the joint stiffness damping, non-dimensional. Use 1 for critical damping.                                        |
| [tuningFrequency](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/tuningfrequency.md)                 | Controls the joint stiffness frequency, in cycles per second.                                                             |
| [upperTranslationLimit](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/uppertranslationlimit.md)     | The upper translation limit of this joint. Must be greater than or equal to the minimum length.                           |
| [worldDrawing](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/worlddrawing.md)                       | Controls whether this joint is automatically drawn when the world is drawn.                                               |

## Static Properties

| Property                                                                                                                 | Description                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| [defaultDefinition](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjointdefinition/defaultdefinition.md) | Get a default [PhysicsSliderJoint](/engine/6000.5/script-reference/unity/u2d/physics/physicssliderjoint.md) definition. |
