文档

Unity Engine

Unity Engine

yMax

Returns or specifies the maximum angular motion about the y-axis.
阅读时间1 分钟最后更新于 1 个月前

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.