getRayCastTiles(line, stepRate, collides, interestingFace) → {Array.<Phaser.Tile>}
Gets all tiles that intersect with the given line.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
line | Phaser.Line | The line used to determine which tiles to return. | ||
stepRate | integer | <optional> | (rayStepRate) | How many steps through the ray will we check? Defaults to |
collides | boolean | <optional> | false | If true, only return tiles that collide on one or more faces. |
interestingFace | boolean | <optional> | false | If true, only return tiles that have interesting faces. |
Returns
Array.<Phaser.Tile> -
An array of Phaser.Tiles.
- Source code: tilemap/TilemapLayer.js (Line 551)
Please login to continue.