Sfoglia il codice sorgente

Fix to setting initial velocity by DefaultParticleInfluencer.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7633 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Kae..pl 14 anni fa
parent
commit
07a2a44f7f

+ 1 - 0
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);