Documentation

Unity Engine

Unity Engine

Overlap

Check if the specified AABB overlaps this AABB.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

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.