Calculate a per-ms speed from a distance and time (given in seconds).
name | type | description |
---|---|---|
distance | number |
The distance. |
time | number |
The time, in seconds. |
The speed, in distance per ms.
// 400px over 1 second is 0.4 px/ms
Phaser.Math.GetSpeed(400, 1) // -> 0.4