Gets the tiles that overlap with the given shape in the given layer. The shape must be a Circle, Line, Rectangle or Triangle. The shape should be in world coordinates.
name | type | description |
---|---|---|
shape | Phaser.Geom.Circle | Phaser.Geom.Line | Phaser.Geom.Rectangle | Phaser.Geom.Triangle |
A shape in world (pixel) coordinates |
filteringOptions | Phaser.Types.Tilemaps.FilteringOptions |
Optional filters to apply when getting the tiles. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to use when calculating the tile index from the world values. |
layer | Phaser.Tilemaps.LayerData |
The Tilemap Layer to act upon. |
Array of Tile objects.