Usually I use the absolute difference divided by the range of the variable (a kind of normalized distance). When I consider more than one variable, I just add the resulting distances. -- Albert
So if you're using heading-change, would you also factor in the differences in possible heading change (like divide by the maximum heading-change for their current velocity), or would you divide by the absolute maximum heading change (i.e. when they aren't moving)? -- Kawigi
MicroAspid is dividing by the maximum heading change, but MicroAspidPMC is dividing by the maximum heading change at the enemy's velocity, and seems to work better (but, I have not tested against real bots, only against PatternBot). -- Albert