Phaser API Documentation

  Version: 
<static> SetTileCollision(tile, [collides])

Description:

Internally used method to set the colliding state of a tile. This does not recalculate interesting faces.

Parameters:

name type arguments Default description
tile Phaser.Tilemaps.Tile

The Tile to set the collision on.

collides boolean <optional> true

Should the tile index collide or not?

Since: 3.0.0