Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Contains(PhysicsAABB)

Checks if the AABB contains (completely encapsulates) the specified AABB.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly bool Contains(PhysicsAABB aabb)

Parameters

The AABB to check being contained by this AABB.

Returns

Type

Description

boolTrue if the specified AABB is contained by this AABB. False if not.