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

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

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

origin: jMonkeyEngine/jmonkeyengine

/**
 * Instantly emits available particles, up to num.
 */
public void emitParticles(int num) {
  // Force world transform to update
  this.getWorldTransform();
  TempVars vars = TempVars.get();
  BoundingBox bbox = (BoundingBox) this.getMesh().getBound();
  Vector3f min = vars.vect1;
  Vector3f max = vars.vect2;
  bbox.getMin(min);
  bbox.getMax(max);
  if (!Vector3f.isValidVector(min)) {
    min.set(Vector3f.POSITIVE_INFINITY);
  }
  if (!Vector3f.isValidVector(max)) {
    max.set(Vector3f.NEGATIVE_INFINITY);
  }
  for(int i=0;i<num;i++) {
    if( emitParticle(min, max) == null ) break;
  }
  bbox.setMinMax(min, max);
  this.setBoundRefresh();
  vars.release();
}
origin: jMonkeyEngine/jmonkeyengine

while (tpf > interval){
  tpf -= interval;
  Particle p = emitParticle(min, max);
  if (p != null){
    p.life -= tpf;
origin: info.projectkyoto/mms-engine

/**
 * Instantly emits all the particles possible to be emitted. Any particles
 * which are currently inactive will be spawned immediately.
 */
public void emitAllParticles() {
  // Force world transform to update
  this.getWorldTransform();
  TempVars vars = TempVars.get();
  BoundingBox bbox = (BoundingBox) this.getMesh().getBound();
  Vector3f min = vars.vect1;
  Vector3f max = vars.vect2;
  bbox.getMin(min);
  bbox.getMax(max);
  if (!Vector3f.isValidVector(min)) {
    min.set(Vector3f.POSITIVE_INFINITY);
  }
  if (!Vector3f.isValidVector(max)) {
    max.set(Vector3f.NEGATIVE_INFINITY);
  }
  while (emitParticle(min, max) != null);
  bbox.setMinMax(min, max);
  this.setBoundRefresh();
  vars.release();
}
origin: org.jmonkeyengine/jme3-core

/**
 * Instantly emits available particles, up to num.
 */
public void emitParticles(int num) {
  // Force world transform to update
  this.getWorldTransform();
  TempVars vars = TempVars.get();
  BoundingBox bbox = (BoundingBox) this.getMesh().getBound();
  Vector3f min = vars.vect1;
  Vector3f max = vars.vect2;
  bbox.getMin(min);
  bbox.getMax(max);
  if (!Vector3f.isValidVector(min)) {
    min.set(Vector3f.POSITIVE_INFINITY);
  }
  if (!Vector3f.isValidVector(max)) {
    max.set(Vector3f.NEGATIVE_INFINITY);
  }
  for(int i=0;i<num;i++) {
    if( emitParticle(min, max) == null ) break;
  }
  bbox.setMinMax(min, max);
  this.setBoundRefresh();
  vars.release();
}
origin: info.projectkyoto/mms-engine

while (tpf > interval){
  tpf -= interval;
  Particle p = emitParticle(min, max);
  if (p != null){
    p.life -= tpf;
origin: org.jmonkeyengine/jme3-core

while (tpf > interval){
  tpf -= interval;
  Particle p = emitParticle(min, max);
  if (p != null){
    p.life -= tpf;
com.jme3.effectParticleEmitteremitParticle

Javadoc

Instantly emits available particles, up to num.

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

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Top plugins for WebStorm
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