Only interpolate if particles are in world space

This commit is contained in:
William Linna 2015-11-14 16:32:44 +02:00
parent 6075e4639d
commit c8a16c940f

View File

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