Phaser API Documentation

  Version: 
preUpdate(willStep, delta)

Description:

Syncs the position body position with the parent Game Object.

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

Parameters:

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