Constructor
new module:Particles(positionDefinition, base, generatoropt, updateropt, optionsopt)
Particles constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Origin for all particles | |
base | Component | Blueprint for each particle | |
generator | OptionsGenerator | <optional> | Initialization function for all particles data |
updater | ParticlesCallback | <optional> | Function called on each particle draw (should not be computation intensive) |
options | ParticleOptions | <optional> |