ShapeDistance(DistanceInput)
Calculate the distance and closest points between two shape proxies.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsQuery.DistanceResult ShapeDistance(PhysicsQuery.DistanceInput distanceInput)
Parameters
The input describing the shape proxies and how they should move.
Returns
Type | Description |
|---|---|
| DistanceResult | The distance result. |