P2 bottom world wall position fix

This commit is contained in:
Phaiax 2014-06-28 01:28:59 +02:00
parent a0a7c02da3
commit 441d0a816e

View file

@ -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)