Phaser API Documentation

  Version: 
calculateFacesAt(tileX, tileY)

Description:

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.

Parameters:

name type description
tileX number

The x coordinate.

tileY number

The y coordinate.

Returns:
Description:

This Tilemap Layer object.

Since: 3.50.0