Class: RandomZone

Phaser.GameObjects.Particles.Zones. RandomZone

A zone that places particles randomly within a shape's area.


new RandomZone(source)

Parameters:
Name Type Description
source RandomZoneSource

An object instance with a getRandomPoint(point) method.

Since: 3.0.0
Source: src/gameobjects/particles/zones/RandomZone.js (Line 29)

Members


source :RandomZoneSource

An object instance with a getRandomPoint(point) method.

Type:
Since: 3.0.0
Source: src/gameobjects/particles/zones/RandomZone.js (Line 46)

Methods


getPoint(particle)

Get the next point in the Zone and set its coordinates on the given Particle.

Parameters:
Name Type Description
particle Phaser.GameObjects.Particles.Particle

The Particle.

Since: 3.0.0
Source: src/gameobjects/particles/zones/RandomZone.js (Line 66)