diff --git a/README.md b/README.md index 830e7d53a5..1c6f121b9e 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/ * The Loader.headers object has a new property `requestedWith`. By default this is set to `false`, but it can be used to set the `X-Requested-With` header to `XMLHttpRequest` (or any other value you need). To enable this do `this.load.headers.requestedWith = 'XMLHttpRequest'` before adding anything to the Loader. * ScaleManager.hasPhaserSetFullScreen is a new boolean that identifies if the browser is in full screen mode or not, and if Phaser was the one that requested it. As it's possible to enter full screen mode outside of Phaser, and it then gets confused about what bounding parent to use. * Phaser.Tileset has a new property `lastgid` which is populated automatically by the TilemapParser when importing Tiled map data, or can be set manually if building your own tileset. +* The property `checkCollision.none` has been removed from the ArcadePhysics.Body class. It was never used internally, so lead to confusion about its use. To disable a body, use `body.enable = false` (thanks @samme #2661) ### Bug Fixes diff --git a/src/physics/arcade/Body.js b/src/physics/arcade/Body.js index 9f679e120b..7c09d73fee 100644 --- a/src/physics/arcade/Body.js +++ b/src/physics/arcade/Body.js @@ -365,7 +365,7 @@ Phaser.Physics.Arcade.Body = function (sprite) { * For example checkCollision.up = false means it won't collide when the collision happened while moving up. * @property {object} checkCollision - An object containing allowed collision. */ - this.checkCollision = { none: false, any: true, up: true, down: true, left: true, right: true }; + this.checkCollision = { any: true, up: true, down: true, left: true, right: true }; /** * This object is populated with boolean values when the Body collides with another. diff --git a/typescript/phaser.d.ts b/typescript/phaser.d.ts index a69e7ed95c..e5e5f8a8e8 100644 --- a/typescript/phaser.d.ts +++ b/typescript/phaser.d.ts @@ -3076,7 +3076,6 @@ declare module Phaser { class FaceChoices { - none: boolean; any: boolean; up: boolean; down: boolean;