mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
P2 bottom world wall position fix
This commit is contained in:
parent
a0a7c02da3
commit
441d0a816e
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ Phaser.Physics.P2.prototype = {
|
|||
|
||||
if (bottom)
|
||||
{
|
||||
this.walls.bottom = new p2.Body({ mass: 0, position: [ this.pxmi(x), this.pxmi(height) ] });
|
||||
this.walls.bottom = new p2.Body({ mass: 0, position: [ this.pxmi(x), this.pxmi(y + height) ] });
|
||||
this.walls.bottom.addShape(new p2.Plane());
|
||||
|
||||
if (setCollisionGroup)
|
||||
|
|
Loading…
Reference in a new issue