Codota Logo
ParticleEmitter.emitAllParticles
Code IndexAdd Codota to your IDE (free)

How to use
emitAllParticles
method
in
com.jme3.effect.ParticleEmitter

Best Java code snippets using com.jme3.effect.ParticleEmitter.emitAllParticles (Showing top 13 results out of 315)

  • Common ways to obtain ParticleEmitter
private void myMethod () {
ParticleEmitter p =
  • Codota IconGeometry geometry;(ParticleEmitter) geometry.clone(cloneMaterial)
  • Codota IconInputCapsule inputCapsule;String str;(ParticleEmitter) inputCapsule.readSavable(str, null)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

  public void onAction(String name, boolean isPressed, float tpf) {
    if ("setNum".equals(name) && isPressed) {
      emit.setNumParticles(5000);
      emit.emitAllParticles();
    }
  }
}, "setNum");
origin: jMonkeyEngine/jmonkeyengine

@Override
public void simpleUpdate(float tpf){  
  time += tpf / speed;
  if (time > 1f && state == 0){
    flash.emitAllParticles();
    spark.emitAllParticles();
    smoketrail.emitAllParticles();
    debris.emitAllParticles();
    shockwave.emitAllParticles();
    state++;
  }
  if (time > 1f + .05f / speed && state == 1){
    flame.emitAllParticles();
    roundspark.emitAllParticles();
    state++;
  }
  
  // rewind the effect
  if (time > 5 / speed && state == 2){
    state = 0;
    time = 0;
    flash.killAllParticles();
    spark.killAllParticles();
    smoketrail.killAllParticles();
    debris.killAllParticles();
    flame.killAllParticles();
    roundspark.killAllParticles();
    shockwave.killAllParticles();
  }
}
origin: jMonkeyEngine/jmonkeyengine

public void collision(PhysicsCollisionEvent event) {
  if (event.getObjectA() instanceof BombControl) {
    final Spatial node = event.getNodeA();
    effect.killAllParticles();
    effect.setLocalTranslation(node.getLocalTranslation());
    effect.emitAllParticles();
  } else if (event.getObjectB() instanceof BombControl) {
    final Spatial node = event.getNodeB();
    effect.killAllParticles();
    effect.setLocalTranslation(node.getLocalTranslation());
    effect.emitAllParticles();
  }
}
origin: jMonkeyEngine/jmonkeyengine

emitter.emitAllParticles();
if (!killParticles.stopRequested) {
  emitter.addControl(killParticles);
origin: jMonkeyEngine/jmonkeyengine

public void collision(PhysicsCollisionEvent event) {
  if (space == null) {
    return;
  }
  if (event.getObjectA() == this || event.getObjectB() == this) {
    space.add(ghostObject);
    ghostObject.setPhysicsLocation(getPhysicsLocation(vector));
    space.addTickListener(this);
    if (effect != null && spatial.getParent() != null) {
      curTime = 0;
      effect.setLocalTranslation(spatial.getLocalTranslation());
      spatial.getParent().attachChild(effect);
      effect.emitAllParticles();
    }
    space.remove(this);
    spatial.removeFromParent();
  }
}

origin: jMonkeyEngine/jmonkeyengine

emit.setEndColor(ColorRGBA.White);
emit.setSelectRandomImage(true);
emit.emitAllParticles();
origin: jMonkeyEngine/jmonkeyengine

smoke.setHighLife(100f);
smoke.setLocalTranslation(0, 0.1f, 0);        
smoke.emitAllParticles();
origin: jMonkeyEngine/jmonkeyengine

debris.getParticleInfluencer().setVelocityVariation(.60f);
rootNode.attachChild(debris);
debris.emitAllParticles();
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport-jmonkey

private void startEffect(Node addnode)
{
  for(Spatial effectspatial : addnode.getChildren())
  {
    if(effectspatial instanceof Node)
    {
      Node effectnode = (Node)effectspatial;
      if(effectnode.getName().startsWith("effectNode"))
      {
        for(Spatial effect : effectnode.getChildren())
          if(effect != null && effect instanceof ParticleEmitter)
          {
            ParticleEmitter tmpeffect = ((ParticleEmitter)effect);
            tmpeffect.emitAllParticles();
          }
        Node oldnode = effectStack.push(effectnode);
        if(oldnode != null)
        {
          oldnode.removeFromParent();
        }
      }
    }
  }
}
origin: tonihele/OpenKeeper

private void addEffectElement(Integer id, Vector3f location) {
  EffectElement effectElement = kwdFile.getEffectElement(id);
  Spatial emitter = loadElement(effectElement);
  if (emitter != null) {
    if (location != null) {
      emitter.setLocalTranslation(location);
    }
    effectElements.put(effectElement, emitter);
    effectNode.attachChild(emitter);
    if (emitter instanceof ParticleEmitter) {
      ((ParticleEmitter) emitter).emitAllParticles();
    }
  }
  // The next effect is chaining the effects, they'll start immediately
  if (effectElement.getNextEffectId() != 0) {
    addEffect(effectElement.getNextEffectId(), null);
  }
}
origin: org.jmonkeyengine/jme3-core

emitter.emitAllParticles();
if (!killParticles.stopRequested) {
  emitter.addControl(killParticles);
origin: info.projectkyoto/mms-engine

emitter.emitAllParticles();
if (!killParticles.stopRequested) {
  emitter.addControl(killParticles);
origin: org.cogchar/org.cogchar.lib.render.goody

public void collision(PhysicsCollisionEvent event) {
  if (space == null) {
    return;
  }
  if (event.getObjectA() == this || event.getObjectB() == this) {
    space.add(ghostObject);
    ghostObject.setPhysicsLocation(getPhysicsLocation(vector));
    space.addTickListener(this);
    if (effect != null && spatial.getParent() != null) {
      curTime = 0;
      effect.setLocalTranslation(spatial.getLocalTranslation());
      spatial.getParent().attachChild(effect);
      effect.emitAllParticles();
    }
    space.remove(this);
    spatial.removeFromParent();
  }
}

com.jme3.effectParticleEmitteremitAllParticles

Javadoc

Instantly emits all the particles possible to be emitted. Any particles which are currently inactive will be spawned immediately.

Popular methods of ParticleEmitter

  • getName
  • setQueueBucket
  • getMaterial
  • setParticlesPerSec
    Set the number of particles to spawn per second.
  • <init>
  • clone
  • getNumVisibleParticles
    Returns the number of visible particles (spawned but not dead).
  • setEndColor
    Set the end color of the particles spawned.The particle color at any time is determined by blending
  • setEndSize
    Set the end size of the particles spawned.The particle size at any time is determined by blending th
  • setGravity
    This method sets the gravity vector.
  • setHighLife
    Set the high value of life.The particle's lifetime/expiration is determined by randomly selecting a
  • setLowLife
    Set the low value of life.The particle's lifetime/expiration is determined by randomly selecting a t
  • setHighLife,
  • setLowLife,
  • setMaterial,
  • setNumParticles,
  • setShadowMode,
  • setStartColor,
  • setStartSize,
  • addControl,
  • emitParticle

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now