# Sandbox.Physics.PhysicsJoint.CreateLength

```csharp
static SpringJoint CreateLength(PhysicsPoint a, PhysicsPoint b, float maxLength)
```

Creates a constraint like a rope, where it has no minimum length but its max length is restrained.

### Parameters

- `a` (`PhysicsPoint`)
- `b` (`PhysicsPoint`)
- `maxLength` (`float`)

### Returns

`SpringJoint`

Declared in [Sandbox.Physics.PhysicsJoint](/api/Sandbox.Physics.PhysicsJoint).
Assembly: `Sandbox.Engine`.
