I want to know if anybody can help me with this. Is I put smoothTime 0 on the Smoothdamp, it means it will instantly reach the target value, right?
So it means this 2 codes are the same?
var smoothing = Mathf.SmoothDamp (1,2,velocity,0);
And:
var smoothing = 2;
Thanks for the help!
1 Answer
1
no, zero means ‘don’t move at all relative to your current position’. You want to put a large number there, though, this may cause you to overshoot your target. If that doesn’t work, just use a lerp.
That said, I’m not really sure why you’d want to interpolate instantaneously between two values. It seems like you’re just adding complexity when you could just as easily set the value. What’s the use case?