The core separation function to separate a physics body and a tile.
name | type | description |
---|---|---|
i | number |
The index of the tile within the map data. |
body | Phaser.Physics.Arcade.Body |
The Body object to separate. |
tile | Phaser.Tilemaps.Tile |
The tile to collide against. |
tileWorldRect | Phaser.Geom.Rectangle |
A rectangle-like object defining the dimensions of the tile. |
tilemapLayer | Phaser.Tilemaps.TilemapLayer |
The tilemapLayer to collide against. |
tileBias | number |
The tile bias value. Populated by the |
isLayer | boolean |
Is this check coming from a TilemapLayer or an array of tiles? |
true
if the body was separated, otherwise false
.