Merging ion storms get wrong center point?

« Back to Bugs

2812 days, 5 hours, 36 minutes ago
View big beefer's profile
big beefer
Merging ion storms get wrong center point?Write Reply
Has anyone noticed that when 2 ion storms merge that the center of the new storm ends up exactly where the center of the weaker storm would be? This is easy to see using the time machine. According to http://www.phost.de/~stefan/ion.html (which is not an "official" document I guess, but used by donovan's, and I think Stefan knows his stuff):

Once we know that two storms merge, we have to compute the new position and size of the storm. It will keep the same Id number, warp factor and heading like the stronger of the two storms. The new center lies on the line between the two original centers, where
(new x) = x1 + (x2 - x1) * (voltage1) / (voltage1 + voltage2)
or, simplified,
(new x) = ((x1*voltage2) + (x2*voltage1)) / (voltage1 + voltage2)
The formula for the Y coordinates is the same with Y instead of X. You may have noticed that this pulls the new center towards the weaker(!) storm, not towards the stronger one like one could guess.

So the new storm should have it's center somewhere between the 2 old ones, but this is not what I am seeing. It is always exactly where the weaker storm would have been. Note that if in the code you were to set the voltage of the weaker storm (voltage2 above) to 0 before computing the equation, you would get exactly the results I'm seeing. Just a thought, maybe the new voltages are being computed before the new center and messing things up?