Types/CollisionMask

From Official Factorio Wiki
Revision as of 14:01, 9 August 2015 by Gopheratl (talk | contribs) (fixing typos in example)
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
  • floor-layer
  • item-layer
  • object-layer
  • player-layer
  • ghost-layer
  • doodad-layer

Additional input is "not-colliding-with-itself".


Example (Most common collision mask of buildings):

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