Tabnine Logo
ParticleEmitter.emitAllParticles
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now