- #1
SomeGuy121
- 8
- 0
Hey Physics Forums. This is my first post here, and I'm just wondering about how to find what the initial velocity SHOULD be based on all the other information that I provide (it's for a program application I coded).
Anyways, I have this right now (which is for no wind/0 wind):
I am just wondering how I would go about factoring in the "wind" and wind's angle.
Wind Angles:
^ 90
< 180 > 0
\/ 270
As you can see, the wind angle starts at 0 and moves counter-clockwise.
Anyways, here's the formula:
Velocity = Sqrt((Mass * (DifferenceInX^ 2)) / (2 * (DifferenceInX) * Sin(Theta* PI / 180) * Cos(Thtea * PI / 180) - (2 * (DifferenceInY)) * ((Cos(Theta* PI / 180) ^ 2))))
Where Theta is the angle of the shot; Difference in X is the difference in coordinates X of the starting position and where you want the shot to end; and DifferenceInY is the difference in coordinates Y of the starting and ending position.
Please help me out, thanks.
Anyways, I have this right now (which is for no wind/0 wind):
I am just wondering how I would go about factoring in the "wind" and wind's angle.
Wind Angles:
^ 90
< 180 > 0
\/ 270
As you can see, the wind angle starts at 0 and moves counter-clockwise.
Anyways, here's the formula:
Velocity = Sqrt((Mass * (DifferenceInX^ 2)) / (2 * (DifferenceInX) * Sin(Theta* PI / 180) * Cos(Thtea * PI / 180) - (2 * (DifferenceInY)) * ((Cos(Theta* PI / 180) ^ 2))))
Where Theta is the angle of the shot; Difference in X is the difference in coordinates X of the starting position and where you want the shot to end; and DifferenceInY is the difference in coordinates Y of the starting and ending position.
Please help me out, thanks.