Phaser API Documentation

  Version: 
deltaX()

Description:

The change in this Body's horizontal position from the previous step. This value is set during the Body's update phase.

As a Body can update multiple times per step this may not hold the final delta value for the Body. In this case, please see the deltaXFinal method.

Returns:
Description:

The delta value.

Type:
  • number
Since: 3.0.0