yosh
1
Hi,
i want to use the Mathf.SmoothDamp-function but i get the following compiler-message:
My function is simple as it can be, but it doesn´t work:
var newFOV : float = Mathf.SmoothDamp(40.0, 60.0, 9.0, 9.0);
What does the " ref currentVelocity : float" value in the documentation mean?
Thanks for that
Eric5h5
2
It means it must be a reference variable; basically you can’t pass a hard-coded value because the variable itself is referenced in the function.
–Eric
yosh
3
Oh yeah, it works.
Thanks a lot for your quick answer.