- #1
lampshade9909
- 11
- 0
I'm developing a 2 Dimensional iOS war game, so think guns bullets damage hit points etc. I'm trying to write a function that calculates the Velocity of a bullet at a certain distance, so that I can calculate the force of the bullet at a certain distance.
So let's say the that Rifle A is firing Bullet A that weights 45 grains (0.002916 kg) with a muzzle velocity of 940 m/s.
I know that my force at the muzzle is 1288 Joules. (940^2) * (1/2) * (0.002916 kg) = 1288 J.
How do I determine the force 100 yards away from the muzzle? To simplify, let's ignore wind and say that air is just sitting still... Let's say my soldier is shooting at an enemy that's 100 meters away. How do I calculate the force that's hitting the enemy? I'm assuming I would need some equation that takes into consideration the bullet's reduction in velocity, so the bullet's mass (which I have) and possibly the size/dimensions for air resistence? Would I need the bullet's ballistic coefficient(BC)? Let's say for example this bullet's BC is 0.132. How would I calculate this?
Let me know if you need any more information, thanks for looking.
PS: This is a useful link, but I'm having trouble deciding what formulas to use: http://en.wikipedia.org/wiki/Ballistic_coefficient
Very useful image:
http://en.wikipedia.org/wiki/File:Effect_of_BC_on_Energy_Retained.jpg
So let's say the that Rifle A is firing Bullet A that weights 45 grains (0.002916 kg) with a muzzle velocity of 940 m/s.
I know that my force at the muzzle is 1288 Joules. (940^2) * (1/2) * (0.002916 kg) = 1288 J.
How do I determine the force 100 yards away from the muzzle? To simplify, let's ignore wind and say that air is just sitting still... Let's say my soldier is shooting at an enemy that's 100 meters away. How do I calculate the force that's hitting the enemy? I'm assuming I would need some equation that takes into consideration the bullet's reduction in velocity, so the bullet's mass (which I have) and possibly the size/dimensions for air resistence? Would I need the bullet's ballistic coefficient(BC)? Let's say for example this bullet's BC is 0.132. How would I calculate this?
Let me know if you need any more information, thanks for looking.
PS: This is a useful link, but I'm having trouble deciding what formulas to use: http://en.wikipedia.org/wiki/Ballistic_coefficient
Very useful image:
http://en.wikipedia.org/wiki/File:Effect_of_BC_on_Energy_Retained.jpg
Last edited: