ドキュメント

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 分最終更新 24日前

Definition

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