Add delta arg to WORLD_STEP event

This commit is contained in:
samme 2020-09-01 11:33:31 -07:00
parent 8f48d39934
commit e194e9586f
2 changed files with 7 additions and 5 deletions

View file

@ -983,7 +983,7 @@ var World = new Class({
}
}
this.emit(Events.WORLD_STEP);
this.emit(Events.WORLD_STEP, fixedDelta);
}
// Process any additional steps this frame
@ -1042,7 +1042,7 @@ var World = new Class({
}
}
this.emit(Events.WORLD_STEP);
this.emit(Events.WORLD_STEP, delta);
this.stepsLastFrame++;
},

View file

@ -16,5 +16,7 @@
*
* @event Phaser.Physics.Arcade.Events#WORLD_STEP
* @since 3.18.0
*
* @param {number} delta - The delta time amount of this step, in seconds.
*/
module.exports = 'worldstep';