# PhysicsSliderJointDefinition

> Create a default PhysicsSliderJoint definition.

## Definition

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

## PhysicsSliderJointDefinition()

Create a default [PhysicsSliderJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicssliderjoint.md) definition.

```csharp
public PhysicsSliderJointDefinition()
```

## PhysicsSliderJointDefinition(bool)

Create a default [PhysicsSliderJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicssliderjoint.md) definition.

```csharp
public PhysicsSliderJointDefinition(bool useSettings)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Controls whether the default settings come from the physics settings or not.
