ShapeDistance(DistanceInput)
Calculate the distance and closest points between two shape proxies.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
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. |