arcade-physics
Version:
Use Arcade Physics without Phaser.
16 lines • 971 B
TypeScript
export = SetCollisionByExclusion;
/**
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
* the given array. The `collides` parameter controls if collision will be enabled (true) or
* disabled (false). Tile indexes not currently in the layer are not affected.
*
* @function Phaser.Tilemaps.Components.SetCollisionByExclusion
* @since 3.0.0
*
* @param {number[]} indexes - An array of the tile indexes to not be counted for collision.
* @param {boolean} collides - If true it will enable collision. If false it will clear collision.
* @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
*/
declare function SetCollisionByExclusion(indexes: number[], collides: boolean, recalculateFaces: boolean, layer: Phaser.Tilemaps.LayerData): void;
//# sourceMappingURL=SetCollisionByExclusion.d.ts.map