Thread:File talk:Neuromancer 6 8 missing sitting duck.png/Neuromancer 6.8 is missing sitting duck.../reply

From RoboWiki
(Difference between revisions)
Jump to: navigation, search

Latest revision as of 20:38, 30 October 2017

Hey, thanks for the bug report. It wasn't that at all actually, it was to do with some broken assumptions that the maximum index would always be on the most clockwise side of the peak (since I use a square kernel). However, I actually initialize the maximum index to where the gun is currently aiming to try to get some continuity in case there are ties, and so the maximum index drifts towards the anti-clockwise side of the bot the longer I shoot at it.

I've fixed it by finding both sides of the peak on either side of maxIndex, and aiming at the mid-point. If you test with 6.9 it should be a lot better at hitting SittingDuck dead center every time =)

Personal tools