Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Rigidbody.drag Question

Discussion in 'Scripting' started by MitchStan, Aug 21, 2008.

  1. MitchStan


    Feb 26, 2007
    If I apply a force every FixedUpdate(), such as:

    Code (csharp):
    1. rigidbody.AddForce(transform.forward*force, ForceMode.Acceleration);
    where force is a constant (force = 50)

    and also adjust the drag with this code;

    Code (csharp):
    1. rigidbody.drag = rigidbody.velocity.magnitude * dragFactor
    where dragFactor is a constant (dragFactor = .5),

    my player moves nicely along the playing surface accelerating until it reaches a terminal velocity.

    My question is - is there any way to determine what the terminal velocity will be based on the input parameters?

    I tried analyzing the output, but I can't seem to find a relationship here.

    Thanks for any help.