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
Interesting... looking back at Teancum (PMC edition?), I may be able to get away with not 'normalizing', since both my paramters (LateralVelocity and AdvancingVelocity) have a range of -8 to 8. However, it may even be more relevant to find the difference of sqrt(latv2+advv2) and atan2(latv, adv) and normalize them. -- Kawigi