[Home]History of TimeToHit

Robo Home | Changes | Preferences | AllPages


Revision 3 . . July 1, 2004 13:40 EST by Ph
Revision 2 . . June 2, 2004 14:07 EST by Ph
  

Difference (from prior major revision) (no other diffs)

Changed: 7c7
return normalRelativeAngleDiff?(enemyBearing,gunHeading)/20+enemyDistance/(20 - 3 * bulletPower);
return Math.abs(normalRelativeAngleDiff?(enemyBearing,gunHeading))/20+enemyDistance/(20 - 3 * bulletPower);

Changed: 11c11
The first part
normalRelativeAngleDiff(enemyBearing,gunHeading)/20
calculates time needed to rotate the gun, and the second one
enemyDistance/(20 - 3 * bulletPower)
computes bullet travel time.
The first part
Math.abs(normalRelativeAngleDiff(enemyBearing,gunHeading))/20
calculates time needed to rotate the gun, and the second one
enemyDistance/(20 - 3 * bulletPower)
computes bullet travel time.

Robo Home | Changes | Preferences | AllPages
Search: