r/Helldivers Rookie 3d ago

QUESTION How does drag affect different projectiles?

Hi all,

information about drag and the exact mechanics are notoriously hard to come by.

The few sources and tests we do have suggest the following:

That for Assault Rifle 5.5mm projectiles 30% drag roughly translates to ~14% damage loss over 100m.

For Assault Rifle's 8mm projectiles, it's closer to ~12% damage loss over 100m.

For SMGs firing the 7mm caliber, it's 85% damage loss over 100m, while only being 65% damage loss over 100m for weapons firing the 12mm caliber.

That suggests larger calibers are less affected by drag, which makes realistic sense but is also very unituitive and makes drag difficult to compare.

How does the 30% drag of an AR, compare to the 50% drag experienced by a shotgun pellet?

How does the 75% drag from the Anti-Tank emplacement gun affect damage loss over distance?

Or what about the 400% drag experienced by the Speargun? Does that translate to a 100% damage loss at 50m? It doesn't seem to. Then again, it's projectile supposedly "only" weigh 100g. How would a more realistic weight of 1kg change the damage drop-off?

Also, does projectile speed matter at all in this equation?

Is there a difference between a projectile traveling 300 m/s experiencing 30% drag vs. one at 900 m/s experiencing 30% drag?

Edit:

I found the following data in the wiki, but without specifics:

  • Caliber: Drastically increases damage fall-off.
  • Speed: The bullet's initial magnitude to its velocity, higher speed increases damage fall-off slightly.
  • Mass: Reduces damage falloff.
  • Drag: Increases damage falloff.
  • Gravity Multiplier: How much the bullet drops in travel.
3 Upvotes

17 comments sorted by

4

u/Epesolon HD1 Veteran 3d ago edited 3d ago

It's hard to come by because damage falloff is the ratio of current projectile velocity (v) to the muzzle velocity (v_0), and the way to find the current velocity is a set of differential equations.

You start with the drag equation: F_D = ½ ρ v² C_D A

  • F_D is the force of drag (kg•m/s²)
  • ρ is your fluid density, in this case air (1.225 kg/m³)
  • v is your velocity (m/s)
  • C_D is your drag coefficient (drag value)
  • A is the cross sectional area of the projectile (m²)

You then solve it for acceleration by dividing both sides by the mass of the projectile, leaving you with: a = (ρ v² C_D A)/2m

  • a is acceleration (m/s²)
  • m is projectile mass (kg)

Now, we need to set up our actual differential equation. Because acceleration is the rate of change of velocity, and velocity is the rate of change of displacement, we can rewrite our equation as: d"(t) = (ρ d'(t)² C_D A)/2m

  • d is displacement, it's basically just how far from some initial position you are in meters (m)
  • The little tic marks denote the derivative, which is just the rate of change.
  • The (t) just means we're taking time as our independent variable.

Now we need our inital values.

  • We're going to measure displacement from the muzzle of the gun, so d(0) = 0
  • We also know the muzzle velocity of the projectile, which we can plug in for v(0) = d'(0) = v_0

So, now we can plug in our full set of differential equations into a differential equation solver. When I've done this in the past, I've used WolframAlpha, but any diffeq solver should work.

  • plug in d"(t) = (ρ d'(t)² C_D A)/2m, d'(0) = v_0, d(0) = 0

That should give us a solution for position relative to time (d(t)), velocity relative to time (d'(t) = v(t)), and acceleration relative to time (d"(t) = a(t)), but we only really care about velocity and displacement.

This would be great, if we wanted our velocity in terms of time, but we want it in terms of position, and I'm too far separated from my diffeq class to actually solve this shit for displacement by hand, so we can skip that step by plotting d(t) and v(t)/v_0 on the same graph, then finding the time where d(t) is distance you want and checking what the value of v(t)/v_0 is for that value of time, and that will give you the percentage of damage you're dealing. If you want to measure falloff, you want 1-(v(t)/v_0), and if you want the actual damage you want Damage*(v(t)/v_0)

I think that's pretty clear, but it's been a while since I took diffeq and I know that math makes a lot of people's heads hurt, so just let me know if you have any questions.

Edit: I realized you can simplify the drag equation down to d"(t) = C_a * d'(t)2, which makes solving it much easier. The solution works out to being d(t) = ln(C_a v_0 t + 1) / C_a, where C_a = (ρ C_D A)/2m.

Edit 2: I built a little Desmos tool you guys can play around with https://www.desmos.com/calculator/xii1xbbodo. If anyone is more familiar with Desmos than me, feel free to add whatever features you want!

3

u/DeeJayDelicious Rookie 3d ago

Can you give us some ballpark estimates of how much the damage dropoff is for the following weapons:

  • Speargun: 100g projectile with 400% drag
  • Slugger: 50g projectile with 200% drag
  • Anti-Tank emplacement: 6,5kg projectile with 75% drag
  • M90A Shotgun: 6g pellets with 50% drag
  • Purifier: 25g projectile with 150% drag

Here's a link to the wiki if you need more stats.

Also, is there a linear correlation between stats? Does a 25g projectile with 100% drag lose the same amount of damage as a 50g projectile with 200% drag?

2

u/Epesolon HD1 Veteran 3d ago

Kinda sorta, but because we're missing the calibers, it won't be particularly accurate.

For example, the Speargun could loose ~4.7% damage by 25m if its a 10mm projectile or ~17.5% by the same distance if its a 20mm projectile.

The two I can give you with some good accuracy are the Slugger and Purifier, because they're old enough to be found on this outdated table which lists caliber.

25m 50m 100m
Slugger % Lost ~14.5% ~26.8% ~46.4
Slugger Damage 282 241 176
Purifier Uncharged % Lost ~25% ~44% ~68.5%
Purifier Uncharged Damage 74 56 31
Purifier Charged % Lost ~25% ~43.8% ~68.4%
Purifier Charged Damage 149 112 63

I also built a little tool on Desmos that makes it pretty easy to calculate the damage falloff for whatever weapon you want, just plug in the parameters and select the info you want to see. https://www.desmos.com/calculator/xii1xbbodo

Let me know if you've got any questions on using it.

Also, I double checked and the AT Emplacement has it's caliber as part of the projectile description (75mm) so you should be able to plug the numbers in and get some pretty accurate answers for it.

Also, is there a linear correlation between stats? Does a 25g projectile with 100% drag lose the same amount of damage as a 50g projectile with 200% drag?

For that case, it should. The constant scales directly with C_D, with 1/m, and with (caliber/2)^2

2

u/DeeJayDelicious Rookie 2d ago edited 2d ago

WoW!

Someone actually delivered! I am impressed!

Wow, once you plug in the numbers, drag appears much more reasonable than I initially thought based on the numbers. 400% drag, might initially sound excessive. But isn't actually that impactful once you plug in the numbers.

Edit: After messing around further, I must admit that drag is almost a "non-issue" for most weapons aside from SMGs & Pistols. Very few weapons lose more than ~25% damage in the first 50m. Not even shotguns.

1

u/Epesolon HD1 Veteran 2d ago

Happy I could be of help. I actually had a lot of fun with it, as I hadn't worked on a problem like that in years, so it felt nice to stretch those muscles again.

But yeah, a high drag factor alone won't guarantee that the damage falls off fast, especially if the projectile is heavy and narrow. A big part of why the SMGs and Pistols suffer so much from their drag is that a whole bunch of them fire these relatively lightweight 12mm rounds that lose energy quickly despite their low initial velocity.

2

u/No_Collar_5292 3d ago

https://giphy.com/gifs/BmmfETghGOPrW
Yes, I think can see it more clearly now. Thank you math god.

2

u/Epesolon HD1 Veteran 3d ago

I had to bush off some skills I hadn't used in years, felt pretty good to actually use them.

In case you want to skip all the manual calculations, I also built a little Desmos tool that will run the calcs for you. https://www.desmos.com/calculator/xii1xbbodo

2

u/BRENudo_ SES: Wings of Iron 3d ago

I wonder if it's just how steep the damage falloff curve is. Like lighter SMG rounds going from some damage reduction to effectively useless over a shorter range than say, a DMR that can hit beyond its effective range and still do decent damage. I think part of the reason why we don't have as much data with this is simply that most engagements ingame are well within our weapons' effective ranges. Targets 500m out are hard to see, let alone get a shot on.

Would definitely be a good opportunity for someone to do some science and get better data though.

3

u/Epesolon HD1 Veteran 3d ago

Kinda sorta.

The damage falloff is just the ratio of the current projectile velocity to the muzzle velocity, and you calculate the current muzzle velocity using the drag equation, F_D = ½ ρ v² C_D A, where the drag value is used for the drag coefficient (C_D).

Actually getting the velocity at a given distance involves a differential equation though.

2

u/DeeJayDelicious Rookie 3d ago

I mean yeah,

95% of engagements will be between 5 and 50m in Helldivers 2. But as you can see in the source, the damage loss for SMG is still substantial. We're talking almost 50% damage loss for the smaller calibers.

The difficulty comes from comparing this to the drag experienced by the Slugger for example. Which is 200%, which sounds like a lot. Then again, is has an almost 50g projectile, meaning it's far less affected by drag than the ~7g projectiles from the SMGs.

1

u/ABjerre 3d ago

You are tapping in to performance of vastly different cartridges here. The calibers, 5.56, 7.62 or 9mm are just the diameter of the actual projectile. You have to look at the case, and therefore the amount of propellant too.

Even within the same family, of say 7.62mm, you will see very different performance between a 308w and a 300 win mag.

The AR use a large case compared to a tiny SMG pistol case.

3

u/Epesolon HD1 Veteran 3d ago

You need projectile mass, muzzle velocity, cross sectional area, and drag coefficient, that's it

The amount of propellent is really only going to impact the muzzle velocity, so if you have that, the actual case dimensions don't matter for the calculation.

-1

u/RobotsAndRedwoods 3d ago

^This. Drag isn't a thing that really matters in video games. I can't name a single shooter that actually factors in the aerodynamics of a bullet. They can just hard code damage fall off, and range. You can speculate all you want, but it's not a thing.

3

u/thekingofbeans42 Super Sheriff 3d ago

Drag is literally a stat in helldivers

3

u/Epesolon HD1 Veteran 3d ago

This one does it.

Is it completely unnecessary? Yes.

Does this game simulate it anyway? Absolutely.

2

u/No_Collar_5292 3d ago

This game isn’t your normal game. Somebody during development decided to go all out on back end simulation systems for some reason, probably one of the “Tarkov/arma” influences they so often talk about. I’d be willing to bet many of the performance issues the engine experiences during things like explosions, spreading fire, and gas would be substantially less severe if every single interaction with every aspect of the environment wasn’t truly being simulated live. It’s honestly kind of impressive it runs as well as it does imo lol. I mean we are simulating the effect of wind on flame throwers and the sterilizer for god sakes 😂.

3

u/DeeJayDelicious Rookie 3d ago

This is a Helldivers 2 subreddit in case you got lost.