Issue 1113. Allow for Particle emitters that constantly have their particlesPerSec set to still emit (#1114)
Previously if particlesPerSec was constantly set timeDifference could never grow large enough to emit a particle as timeDifference was reset to zero each time. This fixes that problem while still ensuring that timeDifference can't have grown very very large (leading to huge numbers of particles being emitted) by capping the timeDifference at the point where its just about to emit a particle. Discussed at https://hub.jmonkeyengine.org/t/particle-emitter-cannot-emit-particles-if-its-emissions-per-second-is-updated-every-frame/41930/2accellbaker
parent
f8dae05a52
commit
04f771f7f9
Loading…
Reference in new issue