Phaser API Documentation

  Version: 
getEmitZone(particle)

Description:

Takes the given particle and sets its x/y coordinates to match the next available emission zone, if any have been configured. This method is called automatically as part of the Particle.fire process.

The Emit Zones are iterated in sequence. Once a zone has had a particle emitted from it, then the next zone is used and so on, in a loop.

Parameters:

name type description
particle Phaser.GameObjects.Particles.Particle

The particle to set the emission zone for.

Since: 3.60.0