• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.jme3.effect.influencers;
2 
3 import com.jme3.effect.Particle;
4 import com.jme3.effect.shapes.EmitterShape;
5 import com.jme3.export.JmeExporter;
6 import com.jme3.export.JmeImporter;
7 import com.jme3.math.Vector3f;
8 import java.io.IOException;
9 
10 /**
11  * This influencer does not influence particle at all.
12  * It makes particles not to move.
13  * @author Marcin Roguski (Kaelthas)
14  */
15 public class EmptyParticleInfluencer implements ParticleInfluencer {
16 
17     @Override
write(JmeExporter ex)18     public void write(JmeExporter ex) throws IOException {
19     }
20 
21     @Override
read(JmeImporter im)22     public void read(JmeImporter im) throws IOException {
23     }
24 
25     @Override
influenceParticle(Particle particle, EmitterShape emitterShape)26     public void influenceParticle(Particle particle, EmitterShape emitterShape) {
27     }
28 
29     @Override
setInitialVelocity(Vector3f initialVelocity)30     public void setInitialVelocity(Vector3f initialVelocity) {
31     }
32 
33     @Override
getInitialVelocity()34     public Vector3f getInitialVelocity() {
35         return null;
36     }
37 
38     @Override
setVelocityVariation(float variation)39     public void setVelocityVariation(float variation) {
40     }
41 
42     @Override
getVelocityVariation()43     public float getVelocityVariation() {
44         return 0;
45     }
46 
47     @Override
clone()48     public ParticleInfluencer clone() {
49         try {
50             return (ParticleInfluencer) super.clone();
51         } catch (CloneNotSupportedException e) {
52             throw new AssertionError();
53         }
54     }
55 }
56