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/ninja/World.js (Line 224)
Please login to continue.