Calculating angle for trajectory with exit position not at 0,0

Click For Summary
SUMMARY

This discussion focuses on calculating the angle required to shoot a projectile from a cannon to hit a target when the cannon's exit position is not at the origin (0,0). The user proposes modifying the standard projectile motion equation by substituting the exit coordinates with expressions involving the cannon's rotation angle and distance from the exit point. The derived equation can be solved for the angle theta using the Quadratic Formula, allowing for the determination of the angle necessary for accurate targeting.

PREREQUISITES
  • Understanding of projectile motion equations
  • Familiarity with trigonometric functions, specifically tangent
  • Knowledge of the Quadratic Formula for solving equations
  • Basic physics concepts related to velocity and gravity
NEXT STEPS
  • Study the derivation of projectile motion equations in non-origin scenarios
  • Learn about the application of the Quadratic Formula in physics problems
  • Explore the effects of varying initial velocities on projectile trajectories
  • Investigate simulation tools for visualizing projectile motion
USEFUL FOR

Physics students, engineers, game developers, and anyone involved in trajectory calculations or projectile motion analysis.

xal
Messages
1
Reaction score
0
I'd like to calculate the angle to shoot a projectile from a cannon in order to hit a target. However, the position that the projectile will be exiting from will not be at 0, 0 -- it will vary according to the angle of the cannon itself. The projectile will be exiting from the tip of the cannon, but the cannon will be rotated about a different point (both points, as well as the target position, will be on the same plane though).

If the projectile was exiting from 0, 0, then I could use this:
[tex]\tan \left( \theta \right) ={\frac {{{\it v0}}^{2}+\mbox {{\tt `\&+-`}<br /> } \left( \sqrt {{{\it v0}}^{4}-{g}^{2}{x}^{2}-2\,gy{{\it v0}}^{2}}<br /> \right) }{gx}}[/tex]

However, in this case, I was considering replacing [tex]x[/tex] and [tex]y[/tex] with [tex]x-l\cos \left( \theta \right)[/tex] and [tex]y-l\sin \left( \theta \right)[/tex] respectively, where [tex]l[/tex] would be the distance away the tip.

That results in this:
[tex]\tan \left( \theta \right) ={\frac {{{\it v0}}^{2}+\sqrt {{{\it v0}}^{<br /> 4}-g \left( g \left( x-l\cos \left( \theta \right) \right) ^{2}+2\,<br /> \left( y-l\sin \left( \theta \right) \right) {{\it v0}}^{2} \right) <br /> }}{g \left( x-l\cos \left( \theta \right) \right) }}<br /> <br /> [/tex]

Different form:
[tex]-1/2\,{\frac {g \left( x-l\cos \left( \theta \right) \right) ^{2}<br /> \left( \tan \left( \theta \right) \right) ^{2}}{{v}^{2}}}+x\tan<br /> \left( \theta \right) -1/2\,{\frac {g \left( x-l\cos \left( \theta<br /> \right) \right) ^{2}}{{v}^{2}}}-y+l\sin \left( \theta \right) =0[/tex]

But I am not sure if this is a way to do it, and I am not sure to go about solving for the angle either.
 
Physics news on Phys.org
Any help would be greatly appreciated! The above equation can be solved for theta by using the Quadratic Formula. Specifically, you can rearrange the equation to the form ax^2 + bx + c = 0 and then solve for x. Once you have x, you can take its inverse tangent to find the angle theta.
 

Similar threads

Replies
46
Views
7K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
10
Views
2K
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
8
Views
2K
Replies
9
Views
1K
Replies
1
Views
1K
Replies
1
Views
1K