Phaser API Documentation

  Version: 
convertTiles(tiles, [options])

Description:

Adds MatterTileBody instances for the given tiles. This adds bodies regardless of whether the tiles are set to collide or not.

Parameters:

name type arguments description
tiles Array.<Phaser.Tilemaps.Tile>

An array of tiles.

options object <optional>

Options to be passed to the MatterTileBody constructor. {@see Phaser.Physics.Matter.TileBody}

Returns:
Description:

This Matter World object.

Since: 3.0.0