Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TestOverlapPoint(Vector2, QueryFilter)

Tests if the provided point overlaps any shapes. See PhysicsQuery.QueryFilter.
Read time 1 minuteLast updated 12 days ago

Definition

public bool TestOverlapPoint(Vector2 point, PhysicsQuery.QueryFilter filter)

Parameters

point

The point used to check overlap. This must be in world-space.

The filter to control the result returned.

Returns

Type

Description

boolIf the query overlaps anything.