Java Code Examples for com.badlogic.gdx.graphics.g3d.particles.ParticleEffect#start()

The following examples show how to use com.badlogic.gdx.graphics.g3d.particles.ParticleEffect#start() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParticleUtils.java    From Skyland with MIT License 5 votes vote down vote up
public void cloudPoof(Vector3 translation) {
    ParticleEffect effect = particleManager.get(Particles.PARTICLE_CLOUD_PUFF, ParticleEffect.class).copy();
    effect.init();
    effect.start();
    effect.translate(translation.add(0, -2.5f, 0));
    effect.scale(1.5f, 1.5f, 1.5f);
    effect.rotate(new Vector3(0, 1, 0), 90);

    particleSystem.add(effect);
}
 
Example 2
Source File: ParticleUtils.java    From Skyland with MIT License 5 votes vote down vote up
public void caveDust(Matrix4 transform) {
    ParticleEffect effect = particleManager.get(Particles.PARTICLE_CAVE_DUST, ParticleEffect.class).copy();
    effect.init();
    effect.start();
    effect.setTransform(transform);
    particleSystem.add(effect);
}