Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OverlapPoint(Vector2)

Check if a point intersects the shape. This will only work on "closed" shapes. See PhysicsShape.ShapeType.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool OverlapPoint(Vector2 point)

Parameters

point

The world point to check.

Returns

Type

Description

boolWhether an intersection was found or not.