Only interpolate if particles are in world space

experimental
William Linna 9 years ago
parent 6075e4639d
commit c8a16c940f
  1. 2
      jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java

@ -1021,7 +1021,7 @@ public class ParticleEmitter extends Geometry {
Particle p = emitParticle(min, max); Particle p = emitParticle(min, max);
if (p != null){ if (p != null){
p.life -= tpf; p.life -= tpf;
if (lastPos != null) { if (lastPos != null && isInWorldSpace()) {
p.position.interpolateLocal(lastPos, 1 - tpf / originalTpf); p.position.interpolateLocal(lastPos, 1 - tpf / originalTpf);
} }
if (p.life <= 0){ if (p.life <= 0){

Loading…
Cancel
Save