文档

Unity Engine

Unity Engine

distance

The distance between the closest points. This is calculated from PhysicsQuery.SegmentDistanceResult.sqrDistance on each access, so prefer that when a squared distance will do.
阅读时间1 分钟最后更新于 23 天前

Definition

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