[Home]History of THQ - TaqHo Questions

Robo Home | Changes | Preferences | AllPages


Revision 6 . . February 16, 2003 22:34 EST by PEZ
Revision 5 . . January 24, 2003 23:31 EST by PEZ
  

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

Changed: 14c14,18
A. Trigonometry
A. Trigonometry

Q. With Linear targetting, how to avoid aiming "off the map"? (I adjust my aiming by calculating a "bearing offset")

A. Answers from PEZ and David Alves recommend aiming at an X,Y coordinate and then making sure it is not off the map. The coordinate can then be translating to a bearing from the robot position.

- PEZ: If you have the distance to the target and from it's heading and velocity have calculated a new bearing. Then it sounds like you have two sides and one angle of the triangle. Or is this maybe a question of BulletTravelTime? For most target bearing guesses I use a guess of the target's new coordinates, which easily can be moved inside the battle field using min() and max(). Then I can convert this to target bearing.


Robo Home | Changes | Preferences | AllPages
Search: