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