Displacement Vector

From Robowiki
Revision as of 20:50, 8 June 2012 by Voidious (talk | contribs) (fix link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
A displacement vector being collected.
Displacement vectors predicting potential movements.
Wikipedia
Wikipedia has an article about:

A representation of a bot's relative movement that can be used in recording and reconstructing firing angles. The bot's positions at the beginning and end of a period of time (e.g., as produced by a wave) form a vector relative to the bot's initial heading. The resulting vector can be applied to future situations to project the enemy's movement and deduce a firing angle. The vector may be scaled by Bullet Travel Time to adapt it to different distances and bullet powers, similar to how GuessFactors are scaled by Maximum Escape Angle.

Advantages

  • The data recorded is not relative to the location of the firing bot, as a GuessFactor would be. This is important in melee, where most enemy movements are not relative to a specific opponent.
  • When predicting enemy movement, projections that lead out of bounds can be ignored or adjusted.
  • Reconstructing firing angles is much faster than Play It Forward simulation, while offering similar advantages.

See also

  • Diamond uses displacement vectors in its gun.