- #1
mabramovich
- 3
- 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.
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.