Skip to content

Commit 5c26182

Browse files
committed
P2.World.updateBoundsCollisionGroup didn't set the _boundsOwnGroup private var, meaning the World.setBounds method wasn't able to restore previously set collision masks automatically (thanks @jmp909 phaserjs#2183)
1 parent 4d5a037 commit 5c26182

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
374374
* Graphics objects can now have a Physics Body directly attached to them, where-as before it would throw an error due to a lack of anchor property (thanks @NLilley #2400)
375375
* A Game Object with `fixedToCamera = true` that was then set for Input, and enabled for dragging from its center (`input.enableDrag(true)`) would throw an error upon being dragged (thanks @solusipse #2367)
376376
* P2.World.updateBoundsCollisionGroup wouldn't use the `boundsCollisionGroup` mask if you passed `true` as the argument, only if it was left undefined.
377+
* P2.World.updateBoundsCollisionGroup didn't set the `_boundsOwnGroup` private var, meaning the `World.setBounds` method wasn't able to restore previously set collision masks automatically (thanks @jmp909 #2183)
377378

378379
### Pixi Updates
379380

src/physics/p2/World.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ Phaser.Physics.P2.prototype = {
639639
this.walls.bottom.shapes[0].collisionGroup = mask;
640640
}
641641

642+
this._boundsOwnGroup = setCollisionGroup;
643+
642644
},
643645

644646
/**

0 commit comments

Comments
 (0)