# constraints

> Get/Set the degrees of freedom constraints (locks) for the body of Linear X, Linear Y and Rotation Z.

## Definition

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

```csharp
public PhysicsBody.BodyConstraints constraints { get; set; }
```
