# freezeRotation

> Controls whether physics will change the rotation of the object.

## Definition

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

```csharp
public bool freezeRotation { get; set; }
```

### Remarks

If freezeRotation is enabled, the rotation in Z is not modified by the physics simulation.

Additional Resources: [\_constraints](/engine/6000.7/script-reference/unityengine/rigidbody2d/constraints.md)
