Skip to content

Commit c7d31ee

Browse files
committed
add initial velocity to newtonian particle influencer
1 parent c110698 commit c7d31ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jme3-core/src/main/java/com/jme3/effect/influencers/NewtonianParticleInfluencer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void influenceParticle(Particle particle, EmitterShape emitterShape) {
8080
// adding tangent vector
8181
particle.velocity.addLocal(temp);
8282
}
83+
particle.velocity.addLocal(initialVelocity);
8384
if (velocityVariation != 0.0f) {
8485
this.applyVelocityVariation(particle);
8586
}

0 commit comments

Comments
 (0)