diff --git a/src/physics/p2/World.js b/src/physics/p2/World.js index d6097738f..e483b74d2 100644 --- a/src/physics/p2/World.js +++ b/src/physics/p2/World.js @@ -337,7 +337,9 @@ Phaser.Physics.P2.prototype = { { object.body = new Phaser.Physics.P2.Body(this.game, object, object.x, object.y, 1); object.body.debug = debug; - object.anchor.set(0.5); + if (typeof object.anchor !== 'undefined') { + object.anchor.set(0.5); + } } },