UNPKG

arcade-physics

Version:
24 lines 963 B
export = TileIntersectsBody; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2013-2023 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks for intersection between the given tile rectangle-like object and an Arcade Physics body. * * @function Phaser.Physics.Arcade.Tilemap.TileIntersectsBody * @since 3.0.0 * * @param {{ left: number, right: number, top: number, bottom: number }} tileWorldRect - A rectangle object that defines the tile placement in the world. * @param {Phaser.Physics.Arcade.Body} body - The body to check for intersection against. * * @return {boolean} Returns `true` of the tile intersects with the body, otherwise `false`. */ declare function TileIntersectsBody(tileWorldRect: { left: number; right: number; top: number; bottom: number; }, body: Phaser.Physics.Arcade.Body): boolean; //# sourceMappingURL=TileIntersectsBody.d.ts.map