Codota Logo
EffectTrack.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.jme3.animation.EffectTrack
constructor

Best Java code snippets using com.jme3.animation.EffectTrack.<init> (Showing top 6 results out of 315)

  • Common ways to obtain EffectTrack
private void myMethod () {
EffectTrack e =
  • Codota Iconnew EffectTrack()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Clone this track
 *
 * @return
 */
@Override
public Track clone() {
  return new EffectTrack(emitter, length, startOffset);
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controlling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
@Override
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
origin: org.jmonkeyengine/jme3-core

/**
 * Clone this track
 *
 * @return
 */
@Override
public Track clone() {
  return new EffectTrack(emitter, length, startOffset);
}
origin: info.projectkyoto/mms-engine

/**
 * Clone this track
 *
 * @return
 */
@Override
public Track clone() {
  return new EffectTrack(emitter, length, startOffset);
}
origin: info.projectkyoto/mms-engine

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emmitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
origin: org.jmonkeyengine/jme3-core

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controlling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
@Override
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
com.jme3.animationEffectTrack<init>

Javadoc

default constructor only for serialization

Popular methods of EffectTrack

  • findEmitter
    recursive function responsible for finding the newly cloned Emitter
  • removeUserData
  • setUserData

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Collectors (java.util.stream)
  • JButton (javax.swing)
  • JOptionPane (javax.swing)
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