aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java')
-rw-r--r--engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java b/engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java
new file mode 100644
index 0000000..013a5db
--- /dev/null
+++ b/engine/src/core/com/jme3/effect/influencers/EmptyParticleInfluencer.java
@@ -0,0 +1,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();
+ }
+ }
+}