Phaser API Documentation

  Version: 
updateMotion(body, delta)

Description:

Calculates a Body's velocity and updates its position.

Parameters:

name type description
body Phaser.Physics.Arcade.Body

The Body to be updated.

delta number

The delta value to be used in the motion calculations, in seconds.

Since: 3.0.0