Skip to content

Commit

Permalink
The property checkCollision.none has been removed from the ArcadePh…
Browse files Browse the repository at this point in the history
…ysics.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)
  • Loading branch information
photonstorm committed Jul 23, 2016
1 parent 30e9273 commit 46c20ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/physics/arcade/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion typescript/phaser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3076,7 +3076,6 @@ declare module Phaser {

class FaceChoices {

none: boolean;
any: boolean;
up: boolean;
down: boolean;
Expand Down

0 comments on commit 46c20ab

Please sign in to comment.