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!
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} |
This Matter World object.