Phaser API Documentation

  Version: 
update(delta)

Description:

Performs a single physics step and updates the body velocity, angle, speed and other properties.

This method can be called multiple times per game frame, depending on the physics step rate.

The results are synced back to the Game Object in postUpdate.

Parameters:

name type description
delta number

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

Since: 3.0.0