Phaser API Documentation

  Version: 
convertTilemapLayer(tilemapLayer, [options])

Description:

Adds MatterTileBody instances for all the colliding tiles within the given tilemap layer.

Set the appropriate tiles in your layer to collide before calling this method!

Parameters:

name type arguments description
tilemapLayer Phaser.Tilemaps.TilemapLayer

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