public class Emitter extends SceneObject implements IUpdateable
Constructor and Description |
---|
Emitter(Emitter other) |
Emitter(IParticleFactory particleFactory) |
Modifier and Type | Method and Description |
---|---|
Emitter |
copy() |
void |
emit()
Actually emit some particles
|
int |
getAmount() |
float |
getInterval() |
ParticleSystem |
getParticleSystem() |
Vector3 |
getRandomPos() |
Vector3 |
getRandomVelocity() |
Vector3 |
getVelocity() |
boolean |
isFinished() |
boolean |
isPaused() |
void |
onUpdate(float time) |
void |
pause() |
void |
setAmount(int amount) |
void |
setInterval(float interval) |
void |
setParticleSystem(ParticleSystem system) |
void |
setRandomPos(Vector3 randomPos) |
void |
setRandomVelocity(Vector3 randomVelocity) |
void |
setVelocity(Vector3 velocity) |
void |
unPause() |
attachTo, detach, getAbsolutePos, getModelMatrix, getParent, getRelativePos, onTransformed
public Emitter(IParticleFactory particleFactory)
public Emitter(Emitter other)
public void onUpdate(float time)
onUpdate
in interface IUpdateable
public void emit()
public boolean isFinished()
isFinished
in interface IUpdateable
public void setParticleSystem(ParticleSystem system)
public ParticleSystem getParticleSystem()
public void setInterval(float interval)
public float getInterval()
public void setAmount(int amount)
public int getAmount()
public void setVelocity(Vector3 velocity)
public Vector3 getVelocity()
public void setRandomVelocity(Vector3 randomVelocity)
public Vector3 getRandomVelocity()
public void setRandomPos(Vector3 randomPos)
public Vector3 getRandomPos()
public void pause()
public void unPause()
public boolean isPaused()
public Emitter copy()