Difference between revisions of "Thread:Talk:Maximum Escape Angle/Is wiki wrong about MEA?/reply (5)"

From Robowiki
Jump to navigation Jump to search
 
m (Forgot :)
 
Line 10: Line 10:
 
:LatVel: 7.762365810207972 AdvVel: -1.9353751647973414
 
:LatVel: 7.762365810207972 AdvVel: -1.9353751647973414
 
:Bullet Power 2:
 
:Bullet Power 2:
LatVel: 7.6504380477042835 AdvVel: -2.338973637781894
+
:LatVel: 7.6504380477042835 AdvVel: -2.338973637781894
 
:Bullet Power 3:
 
:Bullet Power 3:
 
:LatVel: 7.468643411977614 AdvVel: -2.8669435963624013
 
:LatVel: 7.468643411977614 AdvVel: -2.8669435963624013
 
:Distance doesn't change anything if it isn't zero.
 
:Distance doesn't change anything if it isn't zero.

Latest revision as of 15:41, 17 September 2017

I've just calculated it. If it is correct moving away helps.
            latVel = Math.sin(angle) * 8;
            advVel = -Math.cos(angle) * 8;
            timeToHit = distance / (bulletSpeed + advVel);
            mea = latVel / (distance - (timeToHit * advVel) / 2) * hitTime;
This is the formula. It thinks that the bot is moving at full speed and with brute force search I got these results:
Bullet Power 1:
LatVel: 7.762365810207972 AdvVel: -1.9353751647973414
Bullet Power 2:
LatVel: 7.6504380477042835 AdvVel: -2.338973637781894
Bullet Power 3:
LatVel: 7.468643411977614 AdvVel: -2.8669435963624013
Distance doesn't change anything if it isn't zero.