Tabnine Logo
ParticleEmitter.getParticlesPerSec
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jMonkeyEngine/jmonkeyengine

/**
 * Creates and EffectTrack
 *
 * @param emitter the emitter of the track
 * @param length the length of the track (usually the length of the
 * animation you want to add the track to)
 */
public EffectTrack(ParticleEmitter emitter, float length) {
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  this.length = length;
  //Marking the emitter with a reference to this track for further use in deserialization.
  setUserData(this);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Sets the Emitter to use in this track
 *
 * @param emitter
 */
public void setEmitter(ParticleEmitter emitter) {
  if (this.emitter != null) {
    TrackInfo data = (TrackInfo) emitter.getUserData("TrackInfo");
    data.getTracks().remove(this);
  }
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  setUserData(this);
}
origin: org.jmonkeyengine/jme3-core

/**
 * Creates and EffectTrack
 *
 * @param emitter the emitter of the track
 * @param length the length of the track (usually the length of the
 * animation you want to add the track to)
 */
public EffectTrack(ParticleEmitter emitter, float length) {
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  this.length = length;
  //Marking the emitter with a reference to this track for further use in deserialization.
  setUserData(this);
}
origin: info.projectkyoto/mms-engine

/**
 * Creates and EffectTrack
 *
 * @param emitter the emmitter of the track
 * @param length the length of the track (usually the length of the
 * animation you want to add the track to)
 */
public EffectTrack(ParticleEmitter emitter, float length) {
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  this.length = length;
  //Marking the emitter with a reference to this track for further use in deserialization.
  setUserData(this);
}
origin: org.jmonkeyengine/jme3-core

/**
 * Sets the Emitter to use in this track
 *
 * @param emitter
 */
public void setEmitter(ParticleEmitter emitter) {
  if (this.emitter != null) {
    TrackInfo data = (TrackInfo) emitter.getUserData("TrackInfo");
    data.getTracks().remove(this);
  }
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  setUserData(this);
}
origin: info.projectkyoto/mms-engine

/**
 * Sets the Emitter to use in this track
 *
 * @param emitter
 */
public void setEmitter(ParticleEmitter emitter) {
  if (this.emitter != null) {
    TrackInfo data = (TrackInfo) emitter.getUserData("TrackInfo");
    data.getTracks().remove(this);
  }
  this.emitter = emitter;
  //saving particles per second value
  this.particlesPerSeconds = emitter.getParticlesPerSec();
  //setting the emmitter to not emmit.
  this.emitter.setParticlesPerSec(0);
  setUserData(this);
}
com.jme3.effectParticleEmittergetParticlesPerSec

Javadoc

Get the number of particles to spawn per second.

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,
  • setNumParticles,
  • setShadowMode,
  • setStartColor,
  • setStartSize,
  • addControl,
  • emitParticle

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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