기술 자료

Unity Engine

Unity Engine

sqrDistance

The squared distance between the closest points. Use this in place of PhysicsQuery.SegmentDistanceResult.distance when comparing against another squared distance, as it avoids a square root.
읽는 시간 1분최근 업데이트: 24일 전

Definition

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