Thursday, April 28, 2011
Pocket Tanks Guide, Angle, Power, Walk through
I am writing these steps to find the required angle for a given amount of power, for a given tank, to hit the opponent tank (measuring vertical separation between them, and also the center to center tank distance, and ofcourse for shots which involve projectile motions) in "pocket tanks" game. All you require is a calculator and a scale.
(I did not include the derivation here)
Instead of writing it as a single formula,I wrote it in a few number of steps, because i could not write the entire formula at once which includes powers, square roots and all, here.
1) Measure the center to center distance between the tanks on the computer screen and let it be d.(You will need a scale for this)
2) Measure its vertical separation on the screen and let it be y.
3) Now let d'=d*cos(sininverse(y/d)).
4) You decide your own power. Let it be p.
5) Let some constant c= (.0140143)*[(1.297212032) power {10-(.1*p)}] .
6) Find c*d'=a.
7) Find c*y=b.
8) If the target tank is at a higher altitude and at some distance in the screen, find {(a square)+2b} and assume it as x.But if the target tank is at lower altitude and at some distance, then find {(a square)-2b} and assume it as x .
9) Now find the square root of (1-x)=z say.( Remember x should be less than 1. So try altering power a bit to to lower the value of x)
10) Find the required angle taninverse{(z+1)/a} if the tank is present to the left of the screen. If it is to the right, then the angle will be 180-(the angle found out above).
Its worth a try if you have got patience!!!! Believe me :)
