文档

Unity Engine

Unity Engine

maxDistanceOnly

Whether to maintain a maximum distance only or not. If not then the absolute distance will be maintained instead.
阅读时间1 分钟最后更新于 22 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool maxDistanceOnly { get; set; }

Remarks

When true, only the maximum distance is maintained. When false, the absolute distance is maintained.
Additional Resources: DistanceJoint2D.distance