Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


yMax

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

Definition

public float yMax { get; set; }

Remarks

The value returned by this property depends on the current value of the JointAngularLimitHandle.yMotion 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.yRange. If it is ConfigurableJointMotion.Limited, then it will be clamped between the upper limit of JointAngularLimitHandle.yRange and the current value of JointAngularLimitHandle.yMin.