ParticleSystemUtils

ParticleSystemUtils

Provides utility methods for particle systems

Constructor

new ParticleSystemUtils()

Methods

(static) createFlareTexture(sizeopt, optionsopt) → {Texture}

Generates a radial gradient with multiple color stops; useful for water simple fire, snowflakes, water ripples and shockwaves

Parameters:
Name Type Attributes Default Description
size number <optional>
64
options Object <optional>

(static) createParticleSystemEntity(world, particleParameters, material) → {Entity}

Creates an Entity based on an object holding particle emitter parameters and a material

Parameters:
Name Type Description
world
particleParameters
material

(static) createPlanktonTexture(sizeopt, optionsopt) → {Texture}

Generates a texture of random fuzzy dots; useful for dust and plankton

Parameters:
Name Type Attributes Default Description
size number <optional>
64
options Object <optional>

(static) createSnowflakeTexture(sizeopt) → {Texture}

Generates a texture of complex hexagonal snowflakes

Parameters:
Name Type Attributes Default Description
size number <optional>
64

(static) createSplashTexture(sizeopt, optionsopt) → {Texture}

Generates a texture of multiple trailing particles; useful for water splashes and sparks

Parameters:
Name Type Attributes Default Description
size number <optional>
64
options Object <optional>