# xMax

> Returns or specifies the maximum angular motion about the x-axis.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor

```csharp
public float xMax { get; set; }
```

### Remarks

The value returned by this property depends on the current value of the [JointAngularLimitHandle.xMotion](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xmotion.md) property. If it is [ConfigurableJointMotion.Locked](/engine/6000.5/script-reference/unityengine/configurablejointmotion/locked.md), then it will always return 0. If it is [ConfigurableJointMotion.Free](/engine/6000.5/script-reference/unityengine/configurablejointmotion/free.md), then it will always return the upper limit of [JointAngularLimitHandle.xRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xrange.md). If it is [ConfigurableJointMotion.Limited](/engine/6000.5/script-reference/unityengine/configurablejointmotion/limited.md), then it will be clamped between the upper limit of [JointAngularLimitHandle.xRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xrange.md) and the current value of [JointAngularLimitHandle.xMin](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xmin.md).

Additional Resources: [JointAngularLimitHandle.xMin](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xmin.md), [JointAngularLimitHandle.xMotion](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xmotion.md), [JointAngularLimitHandle.xRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/xrange.md).
