TestOverlapAABB(PhysicsAABB, QueryFilter)
Tests if the provided AABB potentially overlaps any shapes. The overlap is between AABB of shapes in the world therefore it may not result in an exact overlap of any shape itself. See PhysicsAABB and PhysicsQuery.QueryFilter.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public bool TestOverlapAABB(PhysicsAABB aabb, PhysicsQuery.QueryFilter filter)
Parameters
The AABB used to check overlap. This must be in world-space.
The filter to control the result returned.
Returns
Type | Description |
|---|---|
| bool | If the query overlaps anything. |