Phaser API Documentation

  Version: 
computeVelocity(emitter, delta, step, processors, t)

Description:

An internal method that calculates the velocity of the Particle and its world position. It also runs it against any active Processors that are set on the Emitter.

Parameters:

name type description
emitter Phaser.GameObjects.Particles.ParticleEmitter

The Emitter that is updating this Particle.

delta number

The delta time in ms.

step number

The delta value divided by 1000.

processors Array.<Phaser.GameObjects.Particles.ParticleProcessor>

An array of all active Particle Processors.

t number

The current normalized lifetime of the particle, between 0 (birth) and 1 (death).

Since: 3.0.0