Phaser API Documentation

preUpdate(willStep, delta)


Syncs the position body position with the parent Game Object.

This method is called every game frame, regardless if the world steps or not.


name type description
willStep boolean

Will this Body run an update as well?

delta number

The delta time, in seconds, elapsed since the last frame.

Since: 3.17.0