PhysicsQuery.DistanceResult
Distance result from shape distance queries.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly struct PhysicsQuery.DistanceResult
Properties
Property | Description |
|---|---|
| distance | The distance between the points, zero if overlapped. |
| iterations | The number of iterations used in the calculation. |
| normal | A Normal vector that points from A to B. This is invalid if the distance is zero. |
| pointA | Closest point on shape A. |
| pointB | Closest point on shape B. |