An object instance that has a contains method that returns a boolean when given x and y arguments.
Should the Particle be killed when it enters the zone? true or leaves it? false
Set to true if the Particle should be killed if it enters this zone.
Set to false to kill the Particle if it leaves this zone.
An object instance that has a contains method that returns a boolean when given x and y arguments.
This could be a Geometry shape, such as Phaser.Geom.Circle, or your own custom object.
A Death Zone.
A Death Zone is a special type of zone that will kill a Particle as soon as it either enters, or leaves, the zone.
The zone consists of a
sourcewhich could be a Geometric shape, such as a Rectangle or Ellipse, or your own object as long as it includes acontainsmethod for which the Particles can be tested against.