Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved I found unity native drag formula.

Discussion in 'Physics' started by nainjoo2001, Aug 18, 2022.

  1. nainjoo2001

    nainjoo2001

    Joined:
    Jul 28, 2022
    Posts:
    5
    I got a datas from expriment below
    200 1/5
    100 2/6
    50 3/6
    25 4/6
    12.5 4/5
    10 5/6
    5 10/11
    1 2.941176

    then simply derived to
    velocity * 50 / (50 + x) 

    and It applies earlier than
    FixedUpdate
     
    Last edited: Aug 23, 2022
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,620
  3. nainjoo2001

    nainjoo2001

    Joined:
    Jul 28, 2022
    Posts:
    5
    eh just unity 2021.3 physics value
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,620
    No idea what that means, sorry.
     
  5. nainjoo2001

    nainjoo2001

    Joined:
    Jul 28, 2022
    Posts:
    5
    I mean rigibody.drag value simply
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,620
    Yes, I know what drag is and I replied above giving you links. What else is it you want?

    3D Physics is PhysX. The link is above.
     
  7. Kreshi

    Kreshi

    Joined:
    Jan 12, 2015
    Posts:
    433
    I think he just wanted to say that he reverseengineered the formula for drag, but i could be wrong :D.
     
  8. nainjoo2001

    nainjoo2001

    Joined:
    Jul 28, 2022
    Posts:
    5
    wait I got some misunderstanding.
    the actual formula was
    velocity /= 1 + drag * Time.fixedDeltaTime