module:Particles

Particles generator class
particles demo

Constructor

new module:Particles(positionDefinition, base, generatoropt, updateropt, optionsopt)

Particles constructor

Parameters:
NameTypeAttributesDescription
positionDefinitionPositionDefinition

Origin for all particles

baseComponent

Blueprint for each particle

generatorOptionsGenerator<optional>

Initialization function for all particles data

updaterParticlesCallback<optional>

Function called on each particle draw (should not be computation intensive)

optionsParticleOptions<optional>

Extends