Overlap
Check if the specified AABB overlaps this AABB.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
Overlap(PhysicsAABB)
Check if the specified AABB overlaps this AABB.
public readonly bool Overlap(PhysicsAABB aabb)
Parameters
The AABB to check overlap with.
Returns
Type | Description |
|---|---|
| bool | True if overlapped, false if not. |
Overlap(Vector2)
Check if the specified point overlaps this AABB.
public readonly bool Overlap(Vector2 point)
Parameters
The point to check overlap with.
Returns
Type | Description |
|---|---|
| bool | True if overlapped, false if not. |