Calculating the Angle of Projection

  • Thread starter Thread starter Archer2338
  • Start date Start date
  • Tags Tags
    Angle Projection
AI Thread Summary
To calculate the angle of projection for a projectile in a game like Garry's Mod, the basic formula θ = 1/2 arcsin(G*R/V^2) is insufficient due to the effects of air resistance. The user notes that air resistance significantly impacts the projectile's trajectory, causing it to fall short of the target. A proposed drag equation suggests that air resistance is proportional to the square of the velocity and depends on the shell's frontal area and a constant. The discussion emphasizes the complexity of incorporating air resistance into the calculations, as it varies with velocity and time. Ultimately, a combination of experimentation and adjustments to the kinematic equations is recommended to accurately determine the necessary angle for hitting a specified distance.
Archer2338
Messages
2
Reaction score
0

Homework Statement



Well, I was trying to find an equation that would let me calculate what angle I have to put my gun at to get the projectile to hit a specified distance. Not actual homework, but something I'm trying to do for a game (Garry's mod)

So the initial velocity of the shell (Muzzle velocity), gravitational acceleration, and range is known.

Homework Equations



I found this off wikipedia:

θ= 1/2 arcsin(G*R/V^2)
With G being gravitational pull, R being the range, and V being the initial velocity.
Problem is, that does not take into account air resistance in the game, which does affect the shell I am firing.

The Attempt at a Solution


See above... So I used that equation, but the shell falls short of its target, meaning that air resistance is slowing it down. How would I calculate the angle of projection to launch a shell R distance with air resistance?


Also, I doubt the game calculates air resistance extremely realistically. It would probably look like this:
(de)Acceleration due to air res. = (Velocity^2*Offset)/Mass of shell
with Offset being some constant that stays the same regardless of the mass of the shell.

Signed up for this forum for this question, and I would be very thankful to anyone that replies.
 
Physics news on Phys.org
Archer2338 said:

Homework Statement



Well, I was trying to find an equation that would let me calculate what angle I have to put my gun at to get the projectile to hit a specified distance. Not actual homework, but something I'm trying to do for a game (Garry's mod)

So the initial velocity of the shell (Muzzle velocity), gravitational acceleration, and range is known.

Homework Equations



I found this off wikipedia:

θ= 1/2 arcsin(G*R/V^2)
With G being gravitational pull, R being the range, and V being the initial velocity.
Problem is, that does not take into account air resistance in the game, which does affect the shell I am firing.

The Attempt at a Solution


See above... So I used that equation, but the shell falls short of its target, meaning that air resistance is slowing it down. How would I calculate the angle of projection to launch a shell R distance with air resistance?


Also, I doubt the game calculates air resistance extremely realistically. It would probably look like this:
(de)Acceleration due to air res. = (Velocity^2*Offset)/Mass of shell
with Offset being some constant that stays the same regardless of the mass of the shell.

Signed up for this forum for this question, and I would be very thankful to anyone that replies.

In reality it is a bit complicated. I might look here.

http://en.wikipedia.org/wiki/Drag_(physics )

The problem is with air resistance is it varies with velocity, the faster you go, the harder the air pushes. And it depends on property of the fluid (in this case air) and the object.
So you have to make a guess what the programmers decided as you did. If they decided to use some physics then the wiki article explains some of the complexities.
 
Last edited by a moderator:
pgardn said:
In reality it is a bit complicated. I might look here.

http://en.wikipedia.org/wiki/Drag_(physics )

The problem is with air resistance is it varies with velocity, the faster you go, the harder the air pushes. And it depends on property of the fluid (in this case air) and the object.
So you have to make a guess what the programmers decided as you did. If they decided to use some physics then the wiki article explains some of the complexities.

Okay, I did a little bit of more digging around. The equation used is:

frontal area of the bullet * velocity^2)/Constant

So I don't know whether this equation only applies to the bullet when it leaves the barrel and slows the same amount each time, or the drag force changes during the bullet's trajectory.

How would I apply those into the base non-air resistance equation? I assume I would be able to find the velocity of the bullet, both estimated and real time (tracking the bullet itself), but how would I incorporate that drag equation to find out the angle I need to hit something at X distance?
 
Last edited by a moderator:
Archer2338 said:
Okay, I did a little bit of more digging around. The equation used is:

frontal area of the bullet * velocity^2)/Constant

So I don't know whether this equation only applies to the bullet when it leaves the barrel and slows the same amount each time, or the drag force changes during the bullet's trajectory.

How would I apply those into the base non-air resistance equation? I assume I would be able to find the velocity of the bullet, both estimated and real time (tracking the bullet itself), but how would I incorporate that drag equation to find out the angle I need to hit something at X distance?

That equation should have some variable involving time. If it is a measure of the force of the air on the bullet or the acceleration, those would change through time due to air resistance based on velocity squared.

On the second part you might have to experiment. You could aim straight at the target and see how far below you miss. Then you know how much below the target it fell so you might be able to use that to know how far above you need to aim. ON the other hand, if you did adjust this way, you would most likely spend more time in the air so that would mess everything up...

You really need to stick this back into the kinematics equations in the horizontal since air resistance would play the biggest role in the horizontal. In other words you would have acceleration in the vertical from gravity (and a little bit from air presumably) and in the horizontal (all from air resistance). In the simple projectile problems air resistance is left out of the horizontal motion.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Back
Top