Flock::Collision::OBB
Internal oriented bounding box (center, half-extents, unit axes) used by the 2D narrowphase for rotated-box tests. Not part of the public API.
Constructors
Instance methods
dir_to_world(local : Flock::Vec2) : Flock::Vec2
Box-local direction -> world direction (rotation only, no translation).
Support radius of the box projected onto unit axis n (half-width of the
box's shadow on that axis).
support(dir : Flock::Vec2) : Flock::Vec2
The corner most aligned with dir (the support point in that direction).
ux
Sourceuy
Source