Segment distance result from segment distance queries.
| Property | Description |
|---|---|
| closest1 | The closest point on the first segment |
| closest2 | The closest point on the second segment |
| 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. |
| fraction1 | The barycentric coordinate on the first segment |
| fraction2 | The barycentric coordinate on the second segment |
| 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. |