Skip to content

Commit 34e58ee

Browse files
authored
Merge pull request #2470 from riccardobl/ivnew
Make initial velocity influence newtornian particles
2 parents 9d70ed7 + c7d31ee commit 34e58ee

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
@@ -81,6 +81,7 @@ public void influenceParticle(Particle particle, EmitterShape emitterShape) {
8181
// adding tangent vector
8282
particle.velocity.addLocal(temp);
8383
}
84+
particle.velocity.addLocal(initialVelocity);
8485
if (velocityVariation != 0.0f) {
8586
this.applyVelocityVariation(particle);
8687
}

0 commit comments

Comments
 (0)