Version: 2022.3
언어: 한국어
public bool OverlapPoint (Vector2 point);

파라미터

point A point in world space.

반환

bool Whether the point overlapped any of the Rigidbody2D colliders.

설명

Check if any of the Rigidbody2D colliders overlap a point in space.

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.