Skip to content

Issue 1113. Allow for Particle emitters that constantly have their pa… - #1114

Merged
stephengold merged 1 commit into
jMonkeyEngine:masterfrom
richardTingle:1113_particalEmitterCantEmitIfConstantlySet
Jun 9, 2019
Merged

Issue 1113. Allow for Particle emitters that constantly have their pa…#1114
stephengold merged 1 commit into
jMonkeyEngine:masterfrom
richardTingle:1113_particalEmitterCantEmitIfConstantlySet

Conversation

@richardTingle

Copy link
Copy Markdown
Member

…rticlesPerSec set to still emit

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/2

…rticlesPerSec set to still emit

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/2

@jmaasing jmaasing left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@stephengold
stephengold merged commit 04f771f into jMonkeyEngine:master Jun 9, 2019
@stephengold stephengold added this to the v3.2.4 milestone Jul 7, 2019
stephengold pushed a commit that referenced this pull request Jul 10, 2019
…rticlesPerSec 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/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants