Skip to content

Commit 46c20ab

Browse files
committed
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 phaserjs#2661)
1 parent 30e9273 commit 46c20ab

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
326326
* 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.
327327
* 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.
328328
* 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.
329+
* 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)
329330

330331
### Bug Fixes
331332

src/physics/arcade/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Phaser.Physics.Arcade.Body = function (sprite) {
365365
* For example checkCollision.up = false means it won't collide when the collision happened while moving up.
366366
* @property {object} checkCollision - An object containing allowed collision.
367367
*/
368-
this.checkCollision = { none: false, any: true, up: true, down: true, left: true, right: true };
368+
this.checkCollision = { any: true, up: true, down: true, left: true, right: true };
369369

370370
/**
371371
* This object is populated with boolean values when the Body collides with another.

typescript/phaser.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3076,7 +3076,6 @@ declare module Phaser {
30763076

30773077
class FaceChoices {
30783078

3079-
none: boolean;
30803079
any: boolean;
30813080
up: boolean;
30823081
down: boolean;

0 commit comments

Comments
 (0)