Overlap
Check if the specified AABB overlaps this AABB.
阅读时间1 分钟最后更新于 1 个月前
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. |