A zone that places particles randomly within a shapes area.
new RandomZone(source)
name | type | description |
---|---|---|
source | Phaser.Types.GameObjects.Particles.RandomZoneSource |
An object instance with a |
An object instance with a getRandomPoint(point)
method.
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. |