This isn’t really a suuper unity-related question, but i was hoping someone with math / physics background could provide me to the mathematical function that gives the velocity decline of a single axis in the Rigidbody 2D componet.

The component i’m talking about is the one in the screenshot below.

When you set the x velocity of a rigid body it slowly slows down, the affect is called drag i think, and it uses the variables in the inspector to decide how fast/slow it will slow down. I just need the mathematical equation for this. If you can help me then please do.

I need to calculate the drag myself for special reasons.