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; }