Codota Logo
EmitterShape
Code IndexAdd Codota to your IDE (free)

How to use
EmitterShape
in
com.jme3.effect.shapes

Best Java code snippets using com.jme3.effect.shapes.EmitterShape (Showing top 15 results out of 315)

  • Common ways to obtain EmitterShape
private void myMethod () {
EmitterShape e =
  • Codota IconInputCapsule inputCapsule;String str;Savable defVal;(EmitterShape) inputCapsule.readSavable(str, defVal)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

shape = shape.deepClone();
particleInfluencer = particleInfluencer.clone();
origin: jMonkeyEngine/jmonkeyengine

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPoint(particle.position);
  this.applyVelocityVariation(particle);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPointAndNormal(particle.position, particle.velocity);
  // influencing the particle's velocity
  if (surfaceTangentFactor == 0.0f) {
    particle.velocity.multLocal(normalVelocity);
  } else {
    // calculating surface tangent (velocity contains the 'normal' value)
    temp.set(particle.velocity.z * surfaceTangentFactor, particle.velocity.y * surfaceTangentFactor, -particle.velocity.x * surfaceTangentFactor);
    if (surfaceTangentRotation != 0.0f) {// rotating the tangent
      Matrix3f m = new Matrix3f();
      m.fromAngleNormalAxis(FastMath.PI * surfaceTangentRotation, particle.velocity);
      temp = m.multLocal(temp);
    }
    // applying normal factor (this must be done first)
    particle.velocity.multLocal(normalVelocity);
    // adding tangent vector
    particle.velocity.addLocal(temp);
  }
  if (velocityVariation != 0.0f) {
    this.applyVelocityVariation(particle);
  }
}
origin: jMonkeyEngine/jmonkeyengine

clone.shape = shape.deepClone();
origin: info.projectkyoto/mms-engine

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPoint(particle.position);
  this.applyVelocityVariation(particle);
}
origin: org.jmonkeyengine/jme3-core

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPointAndNormal(particle.position, particle.velocity);
  // influencing the particle's velocity
  if (surfaceTangentFactor == 0.0f) {
    particle.velocity.multLocal(normalVelocity);
  } else {
    // calculating surface tangent (velocity contains the 'normal' value)
    temp.set(particle.velocity.z * surfaceTangentFactor, particle.velocity.y * surfaceTangentFactor, -particle.velocity.x * surfaceTangentFactor);
    if (surfaceTangentRotation != 0.0f) {// rotating the tangent
      Matrix3f m = new Matrix3f();
      m.fromAngleNormalAxis(FastMath.PI * surfaceTangentRotation, particle.velocity);
      temp = m.multLocal(temp);
    }
    // applying normal factor (this must be done first)
    particle.velocity.multLocal(normalVelocity);
    // adding tangent vector
    particle.velocity.addLocal(temp);
  }
  if (velocityVariation != 0.0f) {
    this.applyVelocityVariation(particle);
  }
}
origin: jMonkeyEngine/jmonkeyengine

shape = shape.deepClone();
origin: org.jmonkeyengine/jme3-core

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPoint(particle.position);
  this.applyVelocityVariation(particle);
}
origin: info.projectkyoto/mms-engine

@Override
public void influenceParticle(Particle particle, EmitterShape emitterShape) {
  emitterShape.getRandomPointAndNormal(particle.position, particle.velocity);
  // influencing the particle's velocity
  if (surfaceTangentFactor == 0.0f) {
    particle.velocity.multLocal(normalVelocity);
  } else {
    // calculating surface tangent (velocity contains the 'normal' value)
    temp.set(particle.velocity.z * surfaceTangentFactor, particle.velocity.y * surfaceTangentFactor, -particle.velocity.x * surfaceTangentFactor);
    if (surfaceTangentRotation != 0.0f) {// rotating the tangent
      Matrix3f m = new Matrix3f();
      m.fromAngleNormalAxis(FastMath.PI * surfaceTangentRotation, particle.velocity);
      temp = m.multLocal(temp);
    }
    // applying normal factor (this must be done first)
    particle.velocity.multLocal(normalVelocity);
    // adding tangent vector
    particle.velocity.addLocal(temp);
  }
  if (velocityVariation != 0.0f) {
    this.applyVelocityVariation(particle);
  }
}
origin: info.projectkyoto/mms-engine

shape = shape.deepClone();
particleInfluencer = particleInfluencer.clone();
origin: org.jmonkeyengine/jme3-core

shape = shape.deepClone();
particleInfluencer = particleInfluencer.clone();
origin: org.jmonkeyengine/jme3-core

clone.shape = shape.deepClone();
origin: info.projectkyoto/mms-engine

@Override
public ParticleEmitter clone(boolean cloneMaterial) {
  ParticleEmitter clone = (ParticleEmitter) super.clone(cloneMaterial);
  clone.shape = shape.deepClone();
origin: org.jmonkeyengine/jme3-core

shape = shape.deepClone();
origin: info.projectkyoto/mms-engine

shape = shape.deepClone();
com.jme3.effect.shapesEmitterShape

Javadoc

This interface declares methods used by all shapes that represent particle emitters.

Most used methods

  • deepClone
    This method creates a deep clone of the current instance of the emitter shape.
  • getRandomPoint
    This method fills in the initial position of the particle.
  • getRandomPointAndNormal
    This method fills in the initial position of the particle and its normal vector.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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