Search in sources :

Example 1 with Emitter

use of com.badlogic.gdx.graphics.g3d.particles.emitters.Emitter in project libgdx by libgdx.

the class ParticleController method copy.

/** @return a copy of this controller */
public ParticleController copy() {
    Emitter emitter = (Emitter) this.emitter.copy();
    Influencer[] influencers = new Influencer[this.influencers.size];
    int i = 0;
    for (Influencer influencer : this.influencers) {
        influencers[i++] = (Influencer) influencer.copy();
    }
    return new ParticleController(new String(this.name), emitter, (ParticleControllerRenderer<?, ?>) renderer.copy(), influencers);
}
Also used : Emitter(com.badlogic.gdx.graphics.g3d.particles.emitters.Emitter) Influencer(com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer)

Aggregations

Emitter (com.badlogic.gdx.graphics.g3d.particles.emitters.Emitter)1 Influencer (com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer)1