Skip to content

Commit 4af38a4

Browse files
authored
Merge pull request phaserjs#5285 from samme/feature/arcade-config-fixedstep
Add ArcadeWorldConfig.fixedStep
2 parents dc99fd0 + 803c300 commit 4af38a4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/physics/arcade/World.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ var World = new Class({
165165
* @default true
166166
* @since 3.23.0
167167
*/
168-
this.fixedStep = true;
168+
this.fixedStep = GetValue(config, 'fixedStep', true);
169169

170170
/**
171171
* The amount of elapsed ms since the last frame.

src/physics/arcade/typedefs/ArcadeWorldConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @since 3.0.0
44
*
55
* @property {number} [fps=60] - Sets {@link Phaser.Physics.Arcade.World#fps}.
6+
* @property {boolean} [fixedStep=true] - Sets {@link Phaser.Physics.Arcade.World#fixedStep}.
67
* @property {number} [timeScale=1] - Sets {@link Phaser.Physics.Arcade.World#timeScale}.
78
* @property {Phaser.Types.Math.Vector2Like} [gravity] - Sets {@link Phaser.Physics.Arcade.World#gravity}.
89
* @property {number} [x=0] - Sets {@link Phaser.Physics.Arcade.World#bounds bounds.x}.

0 commit comments

Comments
 (0)