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

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

Best Java code snippets using com.jme3.effect.ParticleEmitter.getNumVisibleParticles (Showing top 4 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

@Override
protected void controlUpdate(float tpf) {
  if (remove) {
    emitter.removeControl(this);
    return;
  }
  if (emitter.getNumVisibleParticles() == 0) {
    emitter.setCullHint(CullHint.Always);
    emitter.setEnabled(false);
    emitter.removeControl(this);
    stopRequested = false;
  }
}
origin: info.projectkyoto/mms-engine

@Override
protected void controlUpdate(float tpf) {
  if (remove) {
    emitter.removeControl(this);
    return;
  }
  if (emitter.getNumVisibleParticles() == 0) {
    emitter.setCullHint(CullHint.Always);
    emitter.setEnabled(false);
    emitter.removeControl(this);
    stopRequested = false;
  }
}
origin: org.jmonkeyengine/jme3-core

@Override
protected void controlUpdate(float tpf) {
  if (remove) {
    emitter.removeControl(this);
    return;
  }
  if (emitter.getNumVisibleParticles() == 0) {
    emitter.setCullHint(CullHint.Always);
    emitter.setEnabled(false);
    emitter.removeControl(this);
    stopRequested = false;
  }
}
origin: tonihele/OpenKeeper

Entry<EffectElement, Spatial> entry = iter.next();
if (entry.getValue() instanceof ParticleEmitter) {
  if (((ParticleEmitter)entry.getValue()).getNumVisibleParticles() == 0) {
com.jme3.effectParticleEmittergetNumVisibleParticles

Javadoc

Returns the number of visible particles (spawned but not dead).

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
  • 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

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
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