文档

Unity Engine

Unity Engine

Overlap

Check if the specified AABB overlaps this AABB.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

boolTrue if overlapped, false if not.

Overlap(Vector2)

Check if the specified point overlaps this AABB.
public readonly bool Overlap(Vector2 point)

Parameters

point

The point to check overlap with.

Returns

Type

Description

boolTrue if overlapped, false if not.