Flint Particle System Forum - Updating Steady counter rate Sun, 08 May 2016 21:36:37 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Updating Steady counter rate http://flintparticles.org/forum/comments.php?DiscussionID=368&Focus=1242#Comment_1242 http://flintparticles.org/forum/comments.php?DiscussionID=368&Focus=1242#Comment_1242 Mon, 05 Jul 2010 13:38:52 +0100 Xor
I've wanted to start with emitting no particles and for convenience, I tried to set the rate of Steady to 0 and the increase it at a later time.

However, this causes Steady's _timeToNext to bet set to Infinity, effectively making any further rate changes ineffective.

A similar issue exists with very small numbers, scheduling the next emit so far in the future that rate changes never apply in time.

A work around is to call startEmitter(), which resets _timeToNext and allows the new rate to take effect.

I suggest to reset _timeToNext in the rate setter as well, so that rate changes apply without having to take the extra step.

P.S: Great work you've done with Flint! I really enjoy working with its nice syntax. ]]>
Updating Steady counter rate http://flintparticles.org/forum/comments.php?DiscussionID=368&Focus=1246#Comment_1246 http://flintparticles.org/forum/comments.php?DiscussionID=368&Focus=1246#Comment_1246 Fri, 09 Jul 2010 13:30:02 +0100 Richard