mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
World gravity restored.
This commit is contained in:
parent
94133e4c11
commit
a6d77d00a0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue