From 803c300ae41194036343c2422c40dccab932e9fb Mon Sep 17 00:00:00 2001 From: samme Date: Thu, 3 Sep 2020 07:32:44 -0700 Subject: [PATCH] Add ArcadeWorldConfig.fixedStep --- src/physics/arcade/World.js | 2 +- src/physics/arcade/typedefs/ArcadeWorldConfig.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index 54abe6e38..ec81b400e 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -165,7 +165,7 @@ var World = new Class({ * @default true * @since 3.23.0 */ - this.fixedStep = true; + this.fixedStep = GetValue(config, 'fixedStep', true); /** * The amount of elapsed ms since the last frame. diff --git a/src/physics/arcade/typedefs/ArcadeWorldConfig.js b/src/physics/arcade/typedefs/ArcadeWorldConfig.js index 933aa9c2d..258b3bc6b 100644 --- a/src/physics/arcade/typedefs/ArcadeWorldConfig.js +++ b/src/physics/arcade/typedefs/ArcadeWorldConfig.js @@ -3,6 +3,7 @@ * @since 3.0.0 * * @property {number} [fps=60] - Sets {@link Phaser.Physics.Arcade.World#fps}. + * @property {boolean} [fixedStep=true] - Sets {@link Phaser.Physics.Arcade.World#fixedStep}. * @property {number} [timeScale=1] - Sets {@link Phaser.Physics.Arcade.World#timeScale}. * @property {Phaser.Types.Math.Vector2Like} [gravity] - Sets {@link Phaser.Physics.Arcade.World#gravity}. * @property {number} [x=0] - Sets {@link Phaser.Physics.Arcade.World#bounds bounds.x}.