Fix to setting initial velocity by DefaultParticleInfluencer.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7633 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 14 years ago
parent 11a8c132fc
commit 07a2a44f7f
  1. 1
      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);

Loading…
Cancel
Save