OverlapPoint(Vector2)
Check if a point intersects the shape. This will only work on "closed" shapes. See PhysicsShape.ShapeType.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool OverlapPoint(Vector2 point)
Parameters
The world point to check.
Returns
Type | Description |
|---|---|
| bool | Whether an intersection was found or not. |