Skip to content

Ability to emit a certain number of particles#140

Merged
shadowislord merged 2 commits into
jMonkeyEngine:masterfrom
phr00t:master
Jun 2, 2014
Merged

Ability to emit a certain number of particles#140
shadowislord merged 2 commits into
jMonkeyEngine:masterfrom
phr00t:master

Conversation

@phr00t
Copy link
Copy Markdown
Contributor

@phr00t phr00t commented Jun 1, 2014

Instead of just choosing between emitting all particles, or some over a period of time, this new method allows you to immediately emit a certain number of particles.

@phr00t
Copy link
Copy Markdown
Contributor Author

phr00t commented Jun 1, 2014

@shadowislord
Copy link
Copy Markdown
Member

Instead of duplicating the code, it is better to modify emitAllParticles() so that it calls emitParticles(particles.length). That way, one method can be modified if anything needs to be changed, instead of two methods.

@phr00t
Copy link
Copy Markdown
Contributor Author

phr00t commented Jun 2, 2014

Good suggestion; done.

shadowislord added a commit that referenced this pull request Jun 2, 2014
Ability to emit a certain number of particles
@shadowislord shadowislord merged commit bf9a30f into jMonkeyEngine:master Jun 2, 2014
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.

2 participants