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

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

Best Java code snippets using com.jme3.effect.ParticleEmitter.setNumParticles (Showing top 14 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(1000);
    }
  }
}, "setNum");
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

/**
 * Sets the type of mesh used by the particle emitter.
 * @param meshType The mesh type to use
 */
public void setMeshType(ParticleMesh.Type meshType) {
  this.meshType = meshType;
  switch (meshType) {
    case Point:
      particleMesh = new ParticlePointMesh();
      this.setMesh(particleMesh);
      break;
    case Triangle:
      particleMesh = new ParticleTriMesh();
      this.setMesh(particleMesh);
      break;
    default:
      throw new IllegalStateException("Unrecognized particle type: " + meshType);
  }
  this.setNumParticles(particles.length);
}
origin: jMonkeyEngine/jmonkeyengine

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
origin: jMonkeyEngine/jmonkeyengine

clone.setNumParticles(particles.length);
origin: jMonkeyEngine/jmonkeyengine

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
origin: info.projectkyoto/mms-engine

/**
 * Sets the type of mesh used by the particle emitter.
 * @param meshType The mesh type to use
 */
public void setMeshType(ParticleMesh.Type meshType) {
  this.meshType = meshType;
  switch (meshType) {
    case Point:
      particleMesh = new ParticlePointMesh();
      this.setMesh(particleMesh);
      break;
    case Triangle:
      particleMesh = new ParticleTriMesh();
      this.setMesh(particleMesh);
      break;
    default:
      throw new IllegalStateException("Unrecognized particle type: " + meshType);
  }
  this.setNumParticles(particles.length);
}
origin: org.jmonkeyengine/jme3-core

/**
 * Sets the type of mesh used by the particle emitter.
 * @param meshType The mesh type to use
 */
public void setMeshType(ParticleMesh.Type meshType) {
  this.meshType = meshType;
  switch (meshType) {
    case Point:
      particleMesh = new ParticlePointMesh();
      this.setMesh(particleMesh);
      break;
    case Triangle:
      particleMesh = new ParticleTriMesh();
      this.setMesh(particleMesh);
      break;
    default:
      throw new IllegalStateException("Unrecognized particle type: " + meshType);
  }
  this.setNumParticles(particles.length);
}
origin: info.projectkyoto/mms-engine

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
origin: org.jmonkeyengine/jme3-core

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
origin: info.projectkyoto/mms-engine

clone.setNumParticles(particles.length);
origin: org.jmonkeyengine/jme3-core

clone.setNumParticles(particles.length);
origin: org.jmonkeyengine/jme3-core

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
origin: info.projectkyoto/mms-engine

    throw new IllegalStateException("Unrecognized particle type: " + meshType);
this.setNumParticles(numParticles);
com.jme3.effectParticleEmittersetNumParticles

Javadoc

Set the maximum amount of particles that can exist at the same time with this emitter. Calling this method many times is not recommended.

Popular methods of ParticleEmitter

  • emitAllParticles
    Instantly emits all the particles possible to be emitted. Any particles which are currently inactive
  • 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
  • setGravity,
  • setHighLife,
  • setLowLife,
  • setMaterial,
  • 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