Phaser API Documentation

<static> CalculateFacesAt(tileX, tileY, layer)


Calculates interesting faces at the given tile coordinates of the specified layer. Interesting faces are used internally for optimizing collisions against tiles. This method is mostly used internally to optimize recalculating faces when only one tile has been changed.


name type description
tileX number

The x coordinate.

tileY number

The y coordinate.

layer Phaser.Tilemaps.LayerData

The Tilemap Layer to act upon.

Since: 3.0.0