Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## BoundingBox :: struct or {MapPosition, MapPosition} Example code

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.

## Properties

- default
- sorted

left_top | :: MapPosition |
right_bottom | :: MapPosition |
orientation optional | :: RealOrientation | Unused.
Unused.

left_top | :: MapPosition |
right_bottom | :: MapPosition |
orientation optional | :: RealOrientation | Unused.
Unused.

## Properties

### left_top :: MapPosition

### right_bottom :: MapPosition

### orientation :: RealOrientation optional

Unused.

## Examples

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

    -- long definition
    {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}

Type used in

- ArmorPrototype::collision_box
- ArmorPrototype::drawing_box
- ArtilleryProjectilePrototype::collision_box
- CombinatorPrototype::input_connection_bounding_box
- CombinatorPrototype::output_connection_bounding_box
- ConstructionRobotPrototype::collision_box
- CreateAsteroidChunkEffectItem::offset_deviation
- CreateEntityTriggerEffectItem::offset_deviation
- CreateTrivialSmokeEffectItem::offset_deviation
- CurvedRailAPrototype::collision_box
- CurvedRailBPrototype::collision_box
- DecorativePrototype::collision_box
- EntityPrototype::collision_box
- EntityPrototype::map_generator_bounding_box
- EntityPrototype::selection_box
- EntityPrototype::sticker_box
- EntityPrototype::hit_visualization_box
- HalfDiagonalRailPrototype::collision_box
- ItemEntityPrototype::collision_box
- LegacyCurvedRailPrototype::collision_box
- LegacyStraightRailPrototype::collision_box
- LogisticRobotPrototype::collision_box
- OrientedCliffPrototype::collision_bounding_box
- PipePrototype::horizontal_window_bounding_box
- PipePrototype::vertical_window_bounding_box
- RailPrototype::selection_box
- RailRampPrototype::collision_box
- RailRemnantsPrototype::secondary_collision_box
- RailRemnantsPrototype::collision_box
- RailSignalBasePrototype::collision_box
- RailSupportPrototype::elevated_selection_boxes
- RocketSiloPrototype::hole_clipping_box
- SmokePrototype::collision_box
- StorageTankPrototype::window_bounding_box
- StraightRailPrototype::collision_box
- TrainStopDrawingBoxes::north
- TrainStopDrawingBoxes::east
- TrainStopDrawingBoxes::south
- TrainStopDrawingBoxes::west
- TransportBeltConnectablePrototype::collision_box