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

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

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

/**
 * 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

private void updateParticleState(float tpf) {
  this.getWorldTransform();
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

private void updateParticleState(float tpf) {
  this.getWorldTransform();
origin: org.jmonkeyengine/jme3-core

private void updateParticleState(float tpf) {
  this.getWorldTransform();
com.jme3.effectParticleEmittergetWorldTransform

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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Collectors (java.util.stream)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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