Types/CollisionMask: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "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 * reso...")
 
No edit summary
Line 11: Line 11:
* ghost-layer
* ghost-layer
* doodad-layer
* doodad-layer


Example (Most common collision mask of buildings):
Example (Most common collision mask of buildings):
     collision_mask = { "item-layer", "object_layer", "player_layer", "water-tile"}
     collision_mask = { "item-layer", "object_layer", "player_layer", "water-tile"}

Revision as of 16:30, 18 March 2014

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


Example (Most common collision mask of buildings):

   collision_mask = { "item-layer", "object_layer", "player_layer", "water-tile"}