PhysicsQuery.SegmentDistanceResult
Segment distance result from segment distance queries.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsQuery.SegmentDistanceResult
Properties
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 |
| fraction1 | The barycentric coordinate on the first segment |
| fraction2 | The barycentric coordinate on the second segment |
Structs
Struct | Description |
|---|---|
| PhysicsQuery.SegmentDistanceResult.SortAscendingOrder | Ascending distance sort comparer. |