mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
P2 bounds now collides with everything by default
This commit is contained in:
parent
74b1189890
commit
a90ab2e59b
3 changed files with 6 additions and 2 deletions
|
@ -153,8 +153,6 @@ Phaser.Physics.prototype = {
|
|||
throw new Error('The Chipmunk physics system has not been implemented yet.');
|
||||
}
|
||||
|
||||
this.setBoundsToWorld();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -146,6 +146,9 @@ Phaser.Physics.Arcade = function (game) {
|
|||
*/
|
||||
this._dy = 0;
|
||||
|
||||
// By default we want the bounds the same size as the world bounds
|
||||
this.setBoundsToWorld();
|
||||
|
||||
};
|
||||
|
||||
Phaser.Physics.Arcade.prototype.constructor = Phaser.Physics.Arcade;
|
||||
|
|
|
@ -64,6 +64,9 @@ Phaser.Physics.Ninja = function (game) {
|
|||
*/
|
||||
this.quadTree = new Phaser.QuadTree(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels);
|
||||
|
||||
// By default we want the bounds the same size as the world bounds
|
||||
this.setBoundsToWorld();
|
||||
|
||||
};
|
||||
|
||||
Phaser.Physics.Ninja.prototype.constructor = Phaser.Physics.Ninja;
|
||||
|
|
Loading…
Reference in a new issue