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

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

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

origin: jMonkeyEngine/jmonkeyengine

@Override
public void cleanUp() {
  TrackInfo t = (TrackInfo) emitter.getUserData("TrackInfo");
  t.getTracks().remove(this);
  if (t.getTracks().isEmpty()) {
    emitter.setUserData("TrackInfo", null);
  }
}
origin: jMonkeyEngine/jmonkeyengine

private void setUserData(EffectTrack effectTrack) {
  //fetching the UserData TrackInfo.
  TrackInfo data = (TrackInfo) effectTrack.emitter.getUserData("TrackInfo");
  //if it does not exist, we create it and attach it to the emitter.
  if (data == null) {
    data = new TrackInfo();
    effectTrack.emitter.setUserData("TrackInfo", data);
  }
  //adding the given Track to the TrackInfo.
  data.addTrack(effectTrack);
}
origin: org.jmonkeyengine/jme3-core

public void cleanUp() {
  TrackInfo t = (TrackInfo) emitter.getUserData("TrackInfo");
  t.getTracks().remove(this);
  if (t.getTracks().isEmpty()) {
    emitter.setUserData("TrackInfo", null);
  }
}
origin: info.projectkyoto/mms-engine

public void cleanUp() {
  TrackInfo t = (TrackInfo) emitter.getUserData("TrackInfo");
  t.getTracks().remove(this);
  if (t.getTracks().isEmpty()) {
    emitter.setUserData("TrackInfo", null);
  }
}
origin: info.projectkyoto/mms-engine

private void setUserData(EffectTrack effectTrack) {
  //fetching the UserData TrackInfo.
  TrackInfo data = (TrackInfo) effectTrack.emitter.getUserData("TrackInfo");
  //if it does not exist, we create it and attach it to the emitter.
  if (data == null) {
    data = new TrackInfo();
    effectTrack.emitter.setUserData("TrackInfo", data);
  }
  //adding the given Track to the TrackInfo.
  data.addTrack(effectTrack);
}
origin: org.jmonkeyengine/jme3-core

private void setUserData(EffectTrack effectTrack) {
  //fetching the UserData TrackInfo.
  TrackInfo data = (TrackInfo) effectTrack.emitter.getUserData("TrackInfo");
  //if it does not exist, we create it and attach it to the emitter.
  if (data == null) {
    data = new TrackInfo();
    effectTrack.emitter.setUserData("TrackInfo", data);
  }
  //adding the given Track to the TrackInfo.
  data.addTrack(effectTrack);
}
com.jme3.effectParticleEmittersetUserData

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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
  • Github Copilot alternatives
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