struct

Flock::Collision::AABB2D

Inherits Struct < Value < Object

Axis-aligned bounding box, used by the broadphase. Cheap overlap test.

Constructors

new(min : Flock::Vec2, max : Flock::Vec2)
Source
of(col : Collider2D, tf : Flock::Transform2D) : AABB2D

World-space bounds of a collider at the given transform. For rotated boxes and capsules this is a conservative (rotation-aware) box around the shape.

Source

Instance methods

intersects?(o : AABB2D) : Bool
Source
max=(max : Flock::Vec2)
Source
min=(min : Flock::Vec2)
Source