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

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

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

origin: jMonkeyEngine/jmonkeyengine

/**
 * Callback from Control.render(), do not use.
 *
 * @param rm
 * @param vp
 */
private void renderFromControl(RenderManager rm, ViewPort vp) {
  Camera cam = vp.getCamera();
  if (meshType == ParticleMesh.Type.Point) {
    float C = cam.getProjectionMatrix().m00;
    C *= cam.getWidth() * 0.5f;
    // send attenuation params
    this.getMaterial().setFloat("Quadratic", C);
  }
  Matrix3f inverseRotation = Matrix3f.IDENTITY;
  TempVars vars = null;
  if (!worldSpace) {
    vars = TempVars.get();
    inverseRotation = this.getWorldRotation().toRotationMatrix(vars.tempMat3).invertLocal();
  }
  particleMesh.updateParticleData(particles, cam, inverseRotation);
  if (!worldSpace) {
    vars.release();
  }
}
origin: org.jmonkeyengine/jme3-core

/**
 * Callback from Control.render(), do not use.
 *
 * @param rm
 * @param vp
 */
private void renderFromControl(RenderManager rm, ViewPort vp) {
  Camera cam = vp.getCamera();
  if (meshType == ParticleMesh.Type.Point) {
    float C = cam.getProjectionMatrix().m00;
    C *= cam.getWidth() * 0.5f;
    // send attenuation params
    this.getMaterial().setFloat("Quadratic", C);
  }
  Matrix3f inverseRotation = Matrix3f.IDENTITY;
  TempVars vars = null;
  if (!worldSpace) {
    vars = TempVars.get();
    inverseRotation = this.getWorldRotation().toRotationMatrix(vars.tempMat3).invertLocal();
  }
  particleMesh.updateParticleData(particles, cam, inverseRotation);
  if (!worldSpace) {
    vars.release();
  }
}
origin: info.projectkyoto/mms-engine

/**
 * Callback from Control.render(), do not use.
 * 
 * @param rm
 * @param vp 
 */
private void renderFromControl(RenderManager rm, ViewPort vp) {
  Camera cam = vp.getCamera();
  if (meshType == ParticleMesh.Type.Point) {
    float C = cam.getProjectionMatrix().m00;
    C *= cam.getWidth() * 0.5f;
    // send attenuation params
    this.getMaterial().setFloat("Quadratic", C);
  }
  Matrix3f inverseRotation = Matrix3f.IDENTITY;
  TempVars vars = null;
  if (!worldSpace) {
    vars = TempVars.get();
    inverseRotation = this.getWorldRotation().toRotationMatrix(vars.tempMat3).invertLocal();
  }
  particleMesh.updateParticleData(particles, cam, inverseRotation);
  if (!worldSpace) {
    vars.release();
  }
}
com.jme3.effectParticleEmittergetWorldRotation

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
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
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