| Parameter | Description |
|---|---|
| otherShape | The other shape to check the distance of. |
| useRadii | Whether to use the radii of both shapes or not. |
DistanceResult The distance result.
Get the minimum distance between this shape and the specified shape.
| Parameter | Description |
|---|---|
| otherShape | The other shape to check the distance of. |
| otherTransform | The transform used to specify where the other shape is positioned. |
| useRadii | Whether to use the radii of both shapes or not. |
DistanceResult The distance result.
Get the minimum distance between this shape and the specified shape.
| Parameter | Description |
|---|---|
| otherShapes | A read-only span of the other shape to check the distance of. |
| useRadii | Whether to use the radii of both shapes or not. |
DistanceResult The distance result.
Get the minimum distance between this shape and the specified shape(s) span.
| Parameter | Description |
|---|---|
| physicsBody | The body whose attached shape(s) will be used to check the distance of. |
| useRadii | Whether to use the radii of all shapes or not. |
Get the minimum distance between this shape and all the shapes attached to the specified body.