Merge pull request #5285 from samme/feature/arcade-config-fixedstep

Add ArcadeWorldConfig.fixedStep
This commit is contained in:
Richard Davey 2020-09-07 16:24:49 +01:00 committed by GitHub
commit 4af38a4836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View file

@ -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}.