= Particle Emitter Settings :revnumber: 2.2 :revdate: 2020/07/24 :keywords: documentation, effect :uri-jmonkeyengine: https://github.com/jMonkeyEngine/jmonkeyengine/tree/master/ :uri-forum: https://hub.jmonkeyengine.org/ You cannot create a 3D model for delicate things like fire, smoke, or explosions. Particle Emitters are quite an efficient solution to create these kinds of effects: The emitter renders a series of flat orthogonal images and manipulates them in a way that creates the illusion of a anything from a delicate smoke cloud to individual flames, etc. Creating an effect involves some trial and error to get the settings _just right_, and it's worth exploring the expressiveness of the options described below. [TIP] ==== Use the xref:sdk:scene_explorer.adoc[Scene Explorer] in the xref:sdk:sdk.adoc[SDK] to design and preview effects. ==== image:effect/explosion-5.png[explosion-5.png,width="150",height="100"] image:effect/particle.png[particle.png,width="150",height="100"] image:tutorials:beginner/beginner-effect-fire.png[beginner-effect-fire.png,width="150",height="100"] image:effect/butterfly-particle-emitter.png[butterfly-particle-emitter.png,width="150",height="100"] == Create an Emitter . Create one emitter for each effect: + [source,java] ---- ParticleEmitter explosion = new ParticleEmitter( "My explosion effect", Type.Triangle, 30); ---- . Attach the emitter to the rootNode and position it in the scene: + [source,java] ---- rootNode.attachChild(explosion); explosion.setLocalTranslation(bomb.getLocalTranslation()); ---- . Trigger the effect by calling + [source,java] ---- explosion.emitAllParticles() ---- . End the effect by calling + [source,java] ---- explosion.killAllParticles() ---- Choose one of the following mesh shapes * Type.Triangle * Type.Point == Configure Parameters Not all of these parameters are required for all kinds of effects. If you don't specify one of them, a default value will be used. [cols="15,25,20,40", options="header"] |=== 0 = How fast particle spins while flying (e.g. debris, shuriken, missiles out of control).