Click to See Complete Forum and Search --> : Path of a projectile
MXK
Mar 18th, 2002, 05:58 PM
I have a projectile starting at a certain location. I know the original x and y, the initial power, gravity, and also the wind speed. I need to be able to plot a point where the projectile is going to be at a certain time taking into the account all of these values. Technically I found the two equations that should be used, but for some reason instead of going in an arch the projectile goes in a curve upward from the origin. I've checked all the values and they are all accurate. Can someone give these two equations and explain them? Thanks.
MXK
Mar 18th, 2002, 09:12 PM
Right, should have specified that. I have the initial velocity not power. Air drag would be nice (I would be specifying how much, or what the altitude is), but it's not necessary.
DavidHooper
Mar 19th, 2002, 12:33 PM
I remember this from mechanics lessons:
y = xtanT - (0.5 g x^2) / (V^2 cos^2(T))
y is vertical co-ord.
x is horizontal co-ord.
T is launch angle.
V is launch speed.
g is gravity.
That's if memory serves correctly ;) This takes no account of wind speed although you can add it in if you go back to the s=ut+0.5at^2 and put in a wind term. Post again if you're stuck.
Guv
Mar 19th, 2002, 01:06 PM
It seem to me that the equations are something like the following.Distance = InitialDistance + Velocity*Time*Cosine(LaunchAngle)
Height = InitialHeight + Velocity*Time*Sine(LaunchAngle) - GravityAcceleration*Time^2 / 2If the above are not correct, they are close to the correct equations. When not paid with money or sexual favors, I do not verify my memory versus some of the books I have.
If Velocity is a function of time (and maybe itself) due to air resistance, then you can plug it into the above.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.