Search Unity

[5.6.1] Vector2.SmoothDamp optional maxSpeed is not optional

Discussion in 'Documentation' started by BTStone, Jun 13, 2017.

  1. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    1,422
    Hey there,

    so I downloaded 5.6.1 today and opened a clone-version of my project and got some errors regarding to the Vector2.SmoothDamp function.
    This one in particular: No overload for method `SmoothDamp' takes `4' arguments

    Fine. API Changes, going to adress them quickly. Got it working again, that's not the problem, but I find it quite confusing the docs state this:

    https://docs.unity3d.com/ScriptReference/Vector2.SmoothDamp.html

    For the parameter maxSpeed it says: Optionally allows you to clamp the maximum speed.

    Optionally suggest that I don't need this parameter, which would be weird, since I got an error telling me there is no overload method with 4 arguments :)

    Either make it optional with another overload method or it's mandatory.

    Oh and I also think there should be another overload method. If Time.deltaTime is the default value for the deltaTime parameter one shouldn't explicitly write it down again, only if you want to pass another value there - or I'm just completely misinterpreting the explanation of the deltaTime parameter.


    Cheers!