Alchemist0823 / three.quarks

Three.quarks is a general purpose particle system / VFX engine for three.js
https://quarks.art
MIT License
525 stars 26 forks source link

Usage of ``ParticleSystem.emit`` #36

Closed marwie closed 1 year ago

marwie commented 1 year ago

Hello,

I have a case where I have a one-shot effect with a duration of 1 and not looping. I still want to be able to call emit on this effect and have the system emit the provided amount of particles that frame. Currently the internal emitEnded flag prevents that.

What would you suggest on how to make this still work and force it to emit particles?

Here's a short video where I set emitEnded to false before calling emit in a 1 sec interval

https://user-images.githubusercontent.com/5083203/201334382-d6aa8eda-bd2b-498e-be14-cdf749e300a4.mp4

the system is setup like this: image

Alchemist0823 commented 1 year ago

Thanks for asking. Will look into this

Alchemist0823 commented 1 year ago

I removed emitEnded check before spawn method

Alchemist0823 commented 1 year ago

Fixed in commit 89eee1879a0aa405c401de53e0959b90e4aa695d