clearTilemapLayerBodies(map, layer)
Clears all physics bodies from the given TilemapLayer that were created with World.convertTilemap.
Parameters
| Name | Type | Argument | Description | 
|---|---|---|---|
map |  Phaser.Tilemap | The Tilemap to get the map data from.  |  |
layer |  number | string | Phaser.TilemapLayer |  <optional> |  The layer to operate on. If not given will default to map.currentLayer.  |  
- Source code: physics/p2/World.js (Line 1666)
 
Please login to continue.