Difference between revisions of "Thread:Talk:Main Page/while true loop/reply (3)"

From Robowiki
Jump to navigation Jump to search
(Reply to while true loop)
 
(fix link)
 
Line 1: Line 1:
For gun aiming, see [[Game_Physics#Firing_Pitfall]].  This can cause your aim to be a tick behind.  I think most robots don't worry about it.  But if you do worry about it, what I do is predict robot positions 1 tick into the future and use that for aiming.  It's not exact, but works well enough for me.
+
For gun aiming, see [[Robocode/Game_Physics#Firing_Pitfall]].  This can cause your aim to be a tick behind.  I think most robots don't worry about it.  But if you do worry about it, what I do is predict robot positions 1 tick into the future and use that for aiming.  It's not exact, but works well enough for me.

Latest revision as of 07:12, 29 September 2011

For gun aiming, see Robocode/Game_Physics#Firing_Pitfall. This can cause your aim to be a tick behind. I think most robots don't worry about it. But if you do worry about it, what I do is predict robot positions 1 tick into the future and use that for aiming. It's not exact, but works well enough for me.