arcade-physics
Version:
Use Arcade Physics without Phaser.
16 lines • 825 B
TypeScript
export = GetTileCorners;
/**
* Gets the corners of the Tile as an array of Vector2s.
*
* @function Phaser.Tilemaps.Components.GetTileCorners
* @since 3.60.0
*
* @param {number} tileX - The x coordinate, in tiles, not pixels.
* @param {number} tileY - The y coordinate, in tiles, not pixels.
* @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
*
* @return {Phaser.Math.Vector2[]} An array of Vector2s corresponding to the world XY location of each tile corner.
*/
declare function GetTileCorners(tileX: number, tileY: number, camera: Phaser.Cameras.Scene2D.Camera, layer: Phaser.Tilemaps.LayerData): Phaser.Math.Vector2[];
//# sourceMappingURL=GetTileCorners.d.ts.map