ParticleEmitter shockwave = new ParticleEmitter(“Shockwave”, ParticleMesh.Type.Triangle, 1);
shockwave.setQueueBucket(RenderQueue.Bucket.Transparent);
shockwave.setParticlesPerSec(0);
shockwave.setImagesX(8);
shockwave.setImagesY(4);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Particle.j3md");
mat.getAdditionalRenderState().setBlendMode(RenderState.BlendMode.AlphaAdditive);
mat.getAdditionalRenderState().setFaceCullMode(RenderState.FaceCullMode.Off);
mat.getAdditionalRenderState().setDepthWrite(false);
mat.setTexture("Texture", assetManager.loadTexture("Textures/explosions/cycles/cycle_03.png"));
shockwave.setMaterial(mat);