文档

Unity Engine

Unity Engine

upperAngleLimit

Get the upper angle limit, in degrees.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public float upperAngleLimit { get; set; }

Remarks

If the value set here crosses the opposite bound, the two are swapped so the lower bound stays at or below the upper bound; this is silent and never warns. When changing both bounds from script, set them together through the joint definition, otherwise the order of the two assignments can leave them swapped.