You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/custom/p2.js
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13646,11 +13646,17 @@ Phaser.Physics.P2 = function (game, config) {
13646
13646
config = { gravity: [0, 0], broadphase: new p2.SAPBroadphase() };
13647
13647
}
13648
13648
13649
+
/**
13650
+
* @property {object} config - The p2 World configuration object.
13651
+
* @protected
13652
+
*/
13653
+
this.config = config;
13654
+
13649
13655
/**
13650
13656
* @property {p2.World} world - The p2 World in which the simulation is run.
13651
13657
* @protected
13652
13658
*/
13653
-
this.world = new p2.World(config);
13659
+
this.world = new p2.World(this.config);
13654
13660
13655
13661
/**
13656
13662
* @property {number} frameRate - The frame rate the world will be stepped at. Defaults to 1 / 60, but you can change here. Also see useElapsedTime property.
0 commit comments