- Home /

# RigidBody 2D x velocity function

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.

**Answer** by hlw
·
Sep 30, 2017 at 10:22 AM

"How drag is calculated by unity engine (unity answers)

Does this answer your question ?

### Your answer

### Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

### Follow this Question

### Related Questions

Is there a way to have very large mass 0 Answers

OnCollisionEnter problem 3 Answers

Optimising projectile continuously calculated impact point 2 Answers

Calculating force 1 Answer