Phaser API Documentation

  Version: 
computeVelocity(body, delta)

Description:

Calculates a Body's per-axis velocity.

Parameters:

name type description
body Phaser.Physics.Arcade.Body

The Body to compute the velocity for.

delta number

The delta value to be used in the calculation, in seconds.

Since: 3.0.0