OverlapPoint(Vector2)
Check if any of the Rigidbody2D colliders overlap a point in space.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool OverlapPoint(Vector2 point)
Parameters
A point in world space.
Returns
Type | Description |
|---|---|
| bool | Whether the point overlapped any of the Rigidbody2D colliders. |
Remarks
Any EdgeCollider2D attached to the Rigidbody2D won't be checked for an overlapping point as they don't have any area therefore do not support this.