fireflies icon indicating copy to clipboard operation
fireflies copied to clipboard

no more than one rule?

Open cauerego opened this issue 5 years ago • 0 comments

the text days there's just that 1 rule, but clearly there's something more going on the simulation and i can't understand why ncase did it.

https://github.com/ncase/fireflies/blob/a7fde3c80bdc44d2fed262706c96da696d33646a/js/index.js#L241

if(ff.clock>1) ff.clock=1;

not sure if this is where it happens, but when adjusting the "nudge clock forward" on the simulation we can clearly see this second rule in effect.

something a bit too magical for reality, along the lines of:

following 1st rule, when the clock nudging goes beyond 1 cycle, then nudge no more.

not to mention every artificial firefly have the exact same clock cycle makes me wonder if this would hold true for if they didn't... but i like to believe it would.

really, i'm just trying to properly internalise the full concept to myself, and struggling with it when trying to fill the blanks between this simulation and thai reality.

can someone help?

cauerego avatar Feb 06 '19 12:02 cauerego