Hello people
I'm a game developer, and I need help.
I need a "good enough" way to calculate bullet drag. The change in velocity of the bullet due to drag.
I have tried and tried to get my head around the math, but I just can't make it fit. It has to be reasonably accurate, but not 100%.
Preferably I need someone to really cut it out for me with a couple of examples. And since I am working in the Metric system(the game engine only supports that), it would have to be metric.
What i've been trying to do is something along these lines:
dv=-k/m*v^2 dt
dv being delta velocity in m/s
k a constant of some sort, Cd*A... this is the one I have the most trouble with.
m is mass in kg
v is velocity in m/s
dt is delta time in seconds
The problem is that this produces really small numbers for me, and the speed remains too high for too long(rougly 1 second to half the speed of an AK47 is about right I believe?)
Can someone tell me if my formula is all wrong?
I really just need a formula I can use on G1 and G7 bullets... Metric system preferred.
I really hope you guys can help me out.
Thank you, shoot straight.
I'm a game developer, and I need help.
I need a "good enough" way to calculate bullet drag. The change in velocity of the bullet due to drag.
I have tried and tried to get my head around the math, but I just can't make it fit. It has to be reasonably accurate, but not 100%.
Preferably I need someone to really cut it out for me with a couple of examples. And since I am working in the Metric system(the game engine only supports that), it would have to be metric.
What i've been trying to do is something along these lines:
dv=-k/m*v^2 dt
dv being delta velocity in m/s
k a constant of some sort, Cd*A... this is the one I have the most trouble with.
m is mass in kg
v is velocity in m/s
dt is delta time in seconds
The problem is that this produces really small numbers for me, and the speed remains too high for too long(rougly 1 second to half the speed of an AK47 is about right I believe?)
Can someone tell me if my formula is all wrong?
I really just need a formula I can use on G1 and G7 bullets... Metric system preferred.
I really hope you guys can help me out.
Thank you, shoot straight.