Types/BoundingBox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "'''BoundingBox''' is set of two Types/Position. BoundingBoxes are typically centered around the position of an entity. It is specified like this: {{-0.4, -0.4}, {0.4,...")
 
(orientation seemingly unused?)
Line 4: Line 4:
     {{-0.4, -0.4}, {0.4, 0.4}}
     {{-0.4, -0.4}, {0.4, 0.4}}


The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a [[Types/float]] that represents the orientation.
The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a [[Types/float]] that represents the orientation, however it does not seem to be used.

Revision as of 14:04, 3 November 2019

BoundingBox is set of two Types/Position. BoundingBoxes are typically centered around the position of an entity.

It is specified like this:

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

The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a Types/float that represents the orientation, however it does not seem to be used.