Factorio Prototype DocsVersion 1.1.107

BoundingBox :: {MapPosition, MapPosition} Example code

BoundingBoxes are typically centered around the position of an entity.

The first position is leftTop, the second position is rightBottom. There is an unused third member, 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.

Example

{{-0.4, -0.4}, {0.4, 0.4}}

Prototypes

Types