A zone that places particles on a shape's edges.
new EdgeZone(source, quantity, stepRate, [yoyo], [seamless])
name | type | arguments | Default | description |
---|---|---|---|---|
source | Phaser.Types.GameObjects.Particles.EdgeZoneSource |
An object instance with a |
||
quantity | number |
The number of particles to place on the source edge. Set to 0 to use |
||
stepRate | number |
The distance between each particle. When set, |
||
yoyo | boolean | <optional> | false |
Whether particles are placed from start to end and then end to start. |
seamless | boolean | <optional> | true |
Whether one endpoint will be removed if it's identical to the other. |
The counter used for iterating the EdgeZone's points.
The points placed on the source edge.
The number of particles to place on the source edge. Set to 0 to use stepRate
instead.
Whether one endpoint will be removed if it's identical to the other.
An object instance with a getPoints(quantity, stepRate)
method returning an array of points.
The distance between each particle. When set, quantity
is implied and should be set to 0.
Whether particles are placed from start to end and then end to start.
Change the source of the EdgeZone.
name | type | description |
---|---|---|
source | Phaser.Types.GameObjects.Particles.EdgeZoneSource |
An object instance with a |
This Edge Zone.
Get the next point in the Zone and set its coordinates on the given Particle.
name | type | description |
---|---|---|
particle | Phaser.GameObjects.Particles.Particle |
The Particle. |
Update the Phaser.GameObjects.Particles.Zones.EdgeZone#points from the EdgeZone's Phaser.GameObjects.Particles.Zones.EdgeZone#source.
Also updates internal properties.
This Edge Zone.