Types/CollisionMask

From Official Factorio Wiki
Revision as of 18:57, 5 July 2017 by Rseding91 (talk | contribs)
Jump to navigation Jump to search

The collision mask is specified by list of Types/string, every input is specification of one layer the object collides with.

Layers are:

  • ground-tile
  • water-tile
  • resource-layer
  • doodad-layer
  • floor-layer
  • item-layer
  • ghost-layer
  • object-layer
  • player-layer
  • train-layer
  • layer-11
  • layer-12
  • layer-13
  • layer-14
  • layer-15

Additional input is "not-colliding-with-itself". Layer-11 through layer-15 are currently unused by the core game.


Example (Most common collision mask of buildings):

   collision_mask = { "item-layer", "object-layer", "player-layer", "water-tile"}