Virtual bullet doesn't line up with real bullets

Fragment of a discussion from Talk:Main Page
Jump to navigation Jump to search

I would guess this is the result of the Robocode idiosyncrasy where a bullet is fired before the gun is turned (so if you do setTurnGunRightDegrees(10), setFire(3), execute(), the bullet is fired before the gun is turned right 10 degrees). So your actual aim is probably the aim from the previous turn, while your predicted is from the current turn.

Skotty00:28, 4 October 2011