Most visited

Recently visited

ParticleEmitter.EmissionBurst

public static final class ParticleEmitter.EmissionBurst
extends Object

java.lang.Object
   ↳ com.viro.core.ParticleEmitter.EmissionBurst


EmissionBurst defines moments of instantaneous particle creation. Certain particle effects may require the ability to instantaneously spawn N number of particles all at once in a single burst. Fireworks, sparks, and explosions are some examples. To create these kinds of effects, use EmissionBurst.

Summary

Public constructors

ParticleEmitter.EmissionBurst(ParticleEmitter.Factor factor, float startFactorValue, int min, int max, int cycles, float cooldownPeriod)

Create a new EmissionBurst to instantaneously create N particles, where N is randomly chosen from the uniform distribution defined by min and max.

Public constructors

ParticleEmitter.EmissionBurst

ParticleEmitter.EmissionBurst (ParticleEmitter.Factor factor, 
                float startFactorValue, 
                int min, 
                int max, 
                int cycles, 
                float cooldownPeriod)

Create a new EmissionBurst to instantaneously create N particles, where N is randomly chosen from the uniform distribution defined by min and max. The burst will start at the provided time (or distance), and will loop for the given number of cycles, with a cooldown period between each cycle.

Parameters
factor ParticleEmitter.Factor: The ParticleEmitter.Factor indicating whether this EmissionBurst will start after a certain time, or after a certain distance traveled by the ParticleEmitter.

startFactorValue float: If factor is TIME, then this defines the number of milliseconds after the start time of the last emission cycle that this burst will start. If factor is DISTANCE, then this defines the number of meters the ParticleSystem must travel from the start position of the last emission cycle for this burst to start.

min int: The minimum number of particles to create in this EmissionBurst.

max int: The maximum number of particles to create in this EmissionBurst.

cycles int: The number of times to loop the EmissionBurst.

cooldownPeriod float: The duration, in milliseconds, between each cycle.

Hooray!