Talk:Targeting

From Robowiki
Revision as of 15:35, 22 September 2009 by Voidious (talk | contribs) (→‎Interpolation.: linear interpolation in Diamond)
Jump to navigation Jump to search

Interpolation.

In almost every melee gun, you need to do the interpolation to get approximate enemy location. I wonder how are you doing this in your melee gun? Just normal linear interpolation on fancy interpolation? » Nat Pavasant » 14:27, 22 September 2009 (UTC)

I just do linear interpolation in Diamond. Once I detect that a gun wave has passed an enemy, I calculate the angle and distance the enemy has moved since the previous scan, assume he moved an equal distance each tick at that same angle, then trace back his movement and my waves until I find the right spot. --Voidious 14:35, 22 September 2009 (UTC)