Picture 2 of 3 from Album Miscellaneous
|
 |
My ballistics formula. Needs some cleaning up, obviously, but hey. It works.
Variables
-----------------------------
x0, y0 = Initial (x, y) points of the projectile.
θ = Angle at which the projectile is fired.
d = Diameter of projectile
m = Mass of projectile
v0 = Muzzle Velocity of projectile
Cd = Drag coefficient (best keep at 0.295 for bullets and other large bullet-like objects)
p = Atmospheric Pressure (I usually keep it at 1013.25 hPa if I have no distinctive weather system)
t = Temperature (Again, usually keeping it at 80F)
g = Gravitational force (you never know if you're shooting off of, say, Pluto.)
R = Specific gas constant (8.314 472(15))
Have fun! (PS, Z can be replaced by Y if you are using this for a 2D system) |
Picture Added 08-31-2009 12:38 AM
Added by Programmer
|
|
All times are GMT +2. The time now is 09:22 AM.