Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


xMax

Returns or specifies the maximum angular motion about the x-axis.
Read time 1 minuteLast updated 10 days ago

Definition

public float xMax { get; set; }

Remarks

The value returned by this property depends on the current value of the JointAngularLimitHandle.xMotion property. If it is ConfigurableJointMotion.Locked, then it will always return 0. If it is ConfigurableJointMotion.Free, then it will always return the upper limit of JointAngularLimitHandle.xRange. If it is ConfigurableJointMotion.Limited, then it will be clamped between the upper limit of JointAngularLimitHandle.xRange and the current value of JointAngularLimitHandle.xMin.