You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey what were your thoughts on supporting emitters that emit fewer that 1 particles per second. The current Group#addEmitter implementation defines particles per second like so (when duration isn't specified):
When particleCount > maxAge (eg more than one particle per second) the bitwise-or clears the decimal / rounds the pps down to the nearest int (was this intended or should it be a ||?)
If particleCount < MaxAge this gets rounded to 0, resulting in no particle generation. Removing the bitwise-or in that case results in the intended effect, with the particles being generated at < 1 pps.
As always, thx for all the recent updates, they look great!
The text was updated successfully, but these errors were encountered:
Hey @movitto - have a quick read of my comment on #48 before reading the rest of this :) You're more than welcome to get involved as well if you want to!
I agree about the <1pps thing... it's a limitation that shouldn't really exist. I'll add it to the roadmap!
Hey what were your thoughts on supporting emitters that emit fewer that 1 particles per second. The current Group#addEmitter implementation defines particles per second like so (when duration isn't specified):
emitter.particlesPerSecond = emitter.particleCount / that.maxAge | 0
When particleCount > maxAge (eg more than one particle per second) the bitwise-or clears the decimal / rounds the pps down to the nearest int (was this intended or should it be a ||?)
If particleCount < MaxAge this gets rounded to 0, resulting in no particle generation. Removing the bitwise-or in that case results in the intended effect, with the particles being generated at < 1 pps.
As always, thx for all the recent updates, they look great!
The text was updated successfully, but these errors were encountered: