convertTilemap(map, layer, slopeMap) → {array}
Goes through all tiles in the given Tilemap and TilemapLayer and converts those set to collide into physics tiles.Only call this after you have specified all of the tiles you wish to collide with calls like Tilemap.setCollisionBetween, etc.Every time you call this method it will destroy any previously created bodies and remove them from the world.Therefore understand it's a very expensive operation and not to be done in a core game update loop. I