How Do I Factor in Air Resistance for Projectile Motion?

  • Context: Undergrad 
  • Thread starter Thread starter mabramovich
  • Start date Start date
  • Tags Tags
    Air Trajectory
Click For Summary
SUMMARY

The discussion focuses on incorporating air resistance into a projectile motion simulation for a game involving tank shots. The drag force is defined by the equation F_{D} = \frac{1}{2}C\rho Av^2, where C is the drag coefficient, ρ is the air density, A is the cross-sectional area, and v is the velocity. The challenge arises from the interdependence of velocity and air resistance, as calculating one requires knowledge of the other. A solution involves breaking the projectile's flight into small time steps, applying Newton's second law (F=ma) to determine acceleration, and updating velocity iteratively.

PREREQUISITES
  • Understanding of projectile motion principles
  • Familiarity with Newton's laws of motion
  • Basic knowledge of calculus for time-step integration
  • Experience with programming simulations or game development
NEXT STEPS
  • Implement time-step integration for projectile motion in your game
  • Research the effects of varying drag coefficients on projectile trajectories
  • Explore numerical methods for solving differential equations in physics simulations
  • Learn about optimizing game physics for performance and accuracy
USEFUL FOR

Game developers, physics simulation enthusiasts, and anyone interested in accurately modeling projectile motion with air resistance in programming projects.

mabramovich
Messages
3
Reaction score
0
Hi:

I'm to write a program ("game") in which two tanks take shots at each other, with a user who inputs firing angle, gravitational acceleration and the like, I'm sure you've all heard of it.

Anyway, I'm having trouble in dealing with air resistance. Without knowing too much on the subject (not covered in any particular detail at the grade 11 level) the equation for drag is of course:

[tex]F_{D} = \frac{1}{2}C\rho\\Av^2[/tex]

The problem I have is for calculating velocity for use in that formula. First of all, I would I assume I would take both the x-component and y-component of velocity and vector-add them to get a composite velocity, but the formulae normally given for a velocity at time, [tex]t[/tex], ignore air resistance, for example:

[tex]V_{y} = sin\theta\\-gt[/tex]

There is of course no problem if a constant air resistance, [tex]F_{air}[/tex], is used, but air resistance is directly proportional to velocity, so I'm in a bit of a loop here, do I not have a problem of requiring velocity to calculate air resistance and air resistance to calculate velocity?

Any help is greatly appreciated, and of course not just a formula but an explanation.

Thank-you.
 
Physics news on Phys.org
You might find this helpful:
http://wwwmaths.anu.edu.au/comptlsci/Tutorial-Gravity/tutorial_projectile.html
 
Last edited by a moderator:
I'd assume your game calculates the position of the projectile at distinct points in time, such that the entire flight of the projectile is broken up into small bits in time.

You'll need a mass for the projectile. Apply F=ma and determine acceleration. The force on the projectile is the force due to air resistance per your equation above. The accelleration is then a=F/m. Assume this acceleration (decelleration) is applied during the time step. The velocity at the beginning of the time step is V1 and at the end is V2. I'd assume the time steps are going to be very small, a fraction of a second. So now determine velocity V2 from V2=V1+at where acceleration is negative because the force is slowing the projectile down.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
16K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K