what's the different between .Lerp & .SmoothDamp??

what’s the different between .Lerp & .SmoothDamp??

I would recommend posting your code with the code button ![this][1] Also, I don't think you fully understand if statement and/or for loop (not dissing u btw). I would suggest you watch these videos which might make things clear for you[if statements][2] and [for loops][3] [1]: https://i.imgur.com/xaUhDXw.png [2]: https://learn.unity.com/tutorial/if-statements [3]: https://learn.unity.com/tutorial/loops-z2b

1 Answer

1

@ahmedmohsen550

Lerp will evaluate a linear function from A->B

SmoothDamp will evaluate a “spring-damper like function” from A->B, according to the docs.
Below are some pictures that should illustrate the difference.

Linear function:
alt text

Spring Damper:
alt text

For additional comparison, here’s a sigmoid function:
alt text