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)

This commit is contained in:
Richard Davey 2016-07-23 09:43:01 +01:00
parent 30e9273eb8
commit 46c20ab00a
3 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.

View file

@ -3076,7 +3076,6 @@ declare module Phaser {
class FaceChoices {
none: boolean;
any: boolean;
up: boolean;
down: boolean;