Distance(PhysicsShape, bool)
Get the minimum distance between all the shapes attached to this body and the specified shape.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsQuery.DistanceResult Distance(PhysicsShape physicsShape, bool useRadii = true)
Parameters
The shape to check the distance of.
Whether to use the radii of all shapes or not.
Returns
Type | Description |
|---|---|
| DistanceResult | The distance result. |