From a6d77d00a00a6513f0f49698e507672c8d4e4ff9 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Sun, 23 Feb 2014 11:42:24 +0000 Subject: [PATCH] World gravity restored. --- src/physics/World.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/World.js b/src/physics/World.js index b98d3557..4957303a 100644 --- a/src/physics/World.js +++ b/src/physics/World.js @@ -53,7 +53,7 @@ Phaser.Physics.World = function (game, config) { /** * @property {Phaser.InversePointProxy} gravity - The gravity applied to all bodies each step. */ - this.gravity = new Phaser.Physics.InversePointProxy(this.world.gravity); + this.gravity = new Phaser.Physics.InversePointProxy(game, this.world.gravity); /** * @property {p2.Body} bounds - The bounds body contains the 4 walls that border the World. Define or disable with setBounds.