Phaser API Documentation

  Version: 
getDeathZone(particle)

Description:

Takes the given particle and checks to see if any of the configured Death Zones will kill it and returns the result. This method is called automatically as part of the Particle.update process.

Parameters:

name type description
particle Phaser.GameObjects.Particles.Particle

The particle to test against the Death Zones.

Returns:
Description:

true if the particle should be killed, otherwise false.

Type:
  • boolean
Since: 3.60.0