What's the velocity vector to hit a ground target.

AI Thread Summary
To calculate the 3D velocity vector for a projectile to hit a ground target, one must first determine the angles involved in the trajectory. The angle in the xy plane can be calculated using the tangent function based on the coordinates of the cannon and the target. The vertical angle requires solving a set of differential equations that describe the projectile's motion under gravity. By eliminating time from these equations, a formula for the required velocity can be derived, which depends on the chosen angle and the coordinates of the target. This approach provides a foundational method for determining the necessary velocity vector to achieve the desired arc.
glenrhodes
Messages
2
Reaction score
0
I'm a computer programmer, but I'm having trouble with this one. I need help figuring out how to calculate a 3D velocity vector which will make a projectile follow an ARC between two points on the ground, firing with a fixed speed.

I have a cannon at point a (x, y, z)
I have a target on the ground at point b (x, y, z)

I'm trying to figure out vx, vy, vz so that the cannonball will land exactly on point b. There is no wind resistance. Gravity and muzzle velocity are fixed. Every shot comes out at the same speed. What vx, vy and vz would cause a projectile fired from point a to arc up and then down to hit point b precisely?

Thanks very much,
Glen
 
Physics news on Phys.org
Ok, I'm going to take a shot at this one.

There are two angles involved here, one in the xy plane and one that controls the angle at which the cannonball is shot. The one in the xy plane is given by
\tan\phi=\frac {y_b-y_a} {x_b-x_a}
All this equation is telling you to do is point the cannon at the target.

To work out the vertical angle at which to fire is a bit harder, so we can reduce it to a two dimensional problem.For an angle \Theta, velocity v and gravitational acceleration g the cannonball will follow a parabola given by the DEs
<br /> \frac {dy} {dt} = v\sin\theta -gt
\frac {dx} {dt} = v\cos\theta<br />

Eliminating time gives

<br /> y=x\tan\theta -\frac {gx^2} {2v^2}\sec^2\theta

Now we replace x and y with the x,y coordinates of your target X,Y, and solve for v.
Without going through all the steps (since this is my first time using latex), we get.
v = \sqrt(\frac {gX^2} {X\sin2\theta - Y\cos^2\theta})
This equation will give you a velocity if you sub in the coordinates for your target and choose an angle. You should note that there is a range of angles and velocities that will hit the target.

This is not a complete solution to your original problem but should get you on the right track.
 
I see what you're saying. Once we've rotated towards the target, then it's just a matter of creating the 2D equation that finds the value for theta. Once I have v, then I'll rotate back into world space using phi - and that will be my vector.

Thanks so much for your help!
Glen
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top