From 07a2a44f7f14df5571f3dad15c10241cec07b9af Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Wed, 15 Jun 2011 12:05:53 +0000 Subject: [PATCH] Fix to setting initial velocity by DefaultParticleInfluencer. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7633 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/effect/influencers/DefaultParticleInfluencer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/core/com/jme3/effect/influencers/DefaultParticleInfluencer.java b/engine/src/core/com/jme3/effect/influencers/DefaultParticleInfluencer.java index 6769a382e..7eb14e6c7 100644 --- a/engine/src/core/com/jme3/effect/influencers/DefaultParticleInfluencer.java +++ b/engine/src/core/com/jme3/effect/influencers/DefaultParticleInfluencer.java @@ -38,6 +38,7 @@ public class DefaultParticleInfluencer implements ParticleInfluencer { * the particle to be affected */ protected void applyVelocityVariation(Particle particle) { + particle.velocity.set(startVelocity); temp.set(FastMath.nextRandomFloat(), FastMath.nextRandomFloat(), FastMath.nextRandomFloat()); temp.multLocal(2f); temp.subtractLocal(1f, 1f, 1f);