Equivalent strength of RigidBody.Drag

Hi Guys,

I’m trawling the internet for deeper references on Unity’s magical numbers in physics. I’m struggling to find real world equivalents. The main culprit is Unity’s RigidBody.Drag. I understand that rigidbody.velocity’s real world equivalent is m/s. As a single Unity unit is the equivalent to one meter. However I’m slightly confused about drag.

I know it’s a scale factor against some standard deceleration, but normally that’s an equation between air density, the object’s ballistic coefficient (an object’s ability to deflect air resistance in flight), and the current velocity of the object. I don’t know what the standard deceleration is in Unity; whether that’s an arbitrary gaming number picked, or whether that’s the mean air density of the earth at sea level. Normally drag in an equation, which increases deceleration based on the current velocity of the object, against air resistance, using BC as a scaler. I don’t “know” whether Unity is using a real life model of that (or even a pseudo real model), and as such, how I can play with the numbers to make them accurate to real life.

I’d love to learn a little about what Unity is doing behind the scenes here. Is there anyone possibly who’s delved into this who knows?

Thanks!

You could always use something like Trend.Me and extract the velocity decay curve model.

If your math is not that strong another alternative is to check out the PhysX documentation. It might give you some more details.

If I was to guess I would say that PhysX uses the drag equation. Square drop off on velocity is fairly easy to calculate. I doubt that it would bother with calculating the surface area, but I might be wrong.

1 Like