public class RegularEmitter extends Emitter implements Json.Serializable
Emitter which fits most of the particles simulation scenarios.| Modifier and Type | Class and Description |
|---|---|
static class |
RegularEmitter.EmissionMode
Possible emission modes.
|
| Modifier and Type | Field and Description |
|---|---|
RangedNumericValue |
delayValue |
RangedNumericValue |
durationValue |
ScaledNumericValue |
emissionValue |
ScaledNumericValue |
lifeOffsetValue |
ScaledNumericValue |
lifeValue |
maxParticleCount, minParticleCount, percent| Constructor and Description |
|---|
RegularEmitter() |
RegularEmitter(RegularEmitter regularEmitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateParticles(int startIndex,
int count)
Called to initialize new emitted particles.
|
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
ParticleControllerComponent |
copy() |
RangedNumericValue |
getDelay() |
RangedNumericValue |
getDuration() |
ScaledNumericValue |
getEmission() |
RegularEmitter.EmissionMode |
getEmissionMode()
Gets current emission mode.
|
ScaledNumericValue |
getLife() |
ScaledNumericValue |
getLifeOffset() |
float |
getPercentComplete() |
void |
init()
Called once during intialization
|
boolean |
isComplete() |
boolean |
isContinuous() |
void |
read(Json json,
JsonValue jsonData) |
void |
set(RegularEmitter emitter) |
void |
setContinuous(boolean continuous) |
void |
setEmissionMode(RegularEmitter.EmissionMode emissionMode)
Sets emission mode.
|
void |
start()
Called at the start of the simulation.
|
void |
update()
Called to execute the component behavior.
|
void |
write(Json json) |
end, getMaxParticleCount, getMinParticleCount, set, setMaxParticleCount, setMinParticleCount, setParticleCountdispose, killParticles, load, save, setpublic RangedNumericValue delayValue
public RangedNumericValue durationValue
public ScaledNumericValue lifeOffsetValue
public ScaledNumericValue lifeValue
public ScaledNumericValue emissionValue
public RegularEmitter()
public RegularEmitter(RegularEmitter regularEmitter)
public void allocateChannels()
ParticleControllerComponentallocateChannels in class ParticleControllerComponentpublic void start()
ParticleControllerComponentstart in class ParticleControllerComponentpublic void init()
ParticleControllerComponentpublic void activateParticles(int startIndex,
int count)
ParticleControllerComponentactivateParticles in class ParticleControllerComponentpublic void update()
ParticleControllerComponentupdate in class ParticleControllerComponentpublic ScaledNumericValue getLife()
public ScaledNumericValue getEmission()
public RangedNumericValue getDuration()
public RangedNumericValue getDelay()
public ScaledNumericValue getLifeOffset()
public boolean isContinuous()
public void setContinuous(boolean continuous)
public RegularEmitter.EmissionMode getEmissionMode()
public void setEmissionMode(RegularEmitter.EmissionMode emissionMode)
emissionMode - Emission mode to set.public boolean isComplete()
isComplete in class Emitterpublic float getPercentComplete()
public void set(RegularEmitter emitter)
public ParticleControllerComponent copy()
copy in class ParticleControllerComponentpublic void write(Json json)
write in interface Json.Serializablewrite in class EmitterCopyright © 2021. All rights reserved.