BoundingBoxes are typically centered around the position of an entity.
BoundingBoxes are usually specified with the short-hand notation of passing an array of exactly 2 or 3 items.
The first tuple item is left_top, the second tuple item is right_bottom. There is an unused third tuple item, a float that represents the orientation.
Positive x goes towards east, positive y goes towards south. This means that the upper-left point is the least dimension in x and y, and lower-right is the greatest.
left_top | :: MapPosition | |
right_bottom | :: MapPosition | |
orientation optional | :: RealOrientation | Unused. |
Unused. |
left_top | :: MapPosition | |
right_bottom | :: MapPosition | |
orientation optional | :: RealOrientation | Unused. |
Unused. |
{{-0.4, -0.4}, {0.4, 0.4}}
-- long definition
{left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}