TilemapLayer#getRayCastTiles()

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 rayStepRate.

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)
doc_phaser
2017-02-14 11:16:05
Comments
Leave a Comment

Please login to continue.