-
A project to implement the concept of Projectile-Motion and the physics properties required to achieve the desired motion of a projectile.
-
More specifically, this project deals with the calculation of the angle required to launch a projectile such that it hits the desired target, in this case the player which is a tank.
To hit a target at range x and altitude y when fired from (0, 0) and with initial speed v the required angle(s) of launch θ are:
The two roots of the equation correspond to the two possible launch angles, so long as they aren't imaginary.
If the roots happen to be imaginary, the initial speed is not great enough to reach the point (x, y) selected.
This formula allows one to find the angle of launch needed without the restriction of y = 0.