Please can somebody explain to me (cause I am not native english speaking person and i don’t get that DAMP means, cause all dictionaries i found are pointin to words like “wet” and no others) what DAMPTIME MEANS ? And why is there Time.deltaTime
Should I call the setFloat on update or just once ? Following the previous question:
question part 1:
I am trying to use 2D BlendTree in mecanim, and I would like to fade the float speed from 0 to 1, it’s accomplished by:
animator.SetFloat(“speed”, desiredSpeed, damptime, deltatime)
but I still don’t get what that mean, i’d understand that the damptime is time needed to finish the fade but why is the deltatime there? and how is it counted? if i put there
animator.SetFloat(“speed”, _speed, 0.1f, Time.deltaTime);
then it’s slow, for sure not 0.1 second, so I am not quite sure what parameters to put there to have 1/10 sec fade time
question part 2:
when I use:
animator.SetFloat("speed", _speed);
then it works, but does not blend smoothly
and when i use
animator.SetFloat("speed", 1f,1f,Time.deltaTime);
then it stops at speed 0.0196…
animator.SetFloat("speed", 1f,0.01f,Time.deltaTime); // 0.66
animator.SetFloat("speed", 1f,0.001f,Time.deltaTime); // 0.95
animator.SetFloat("speed", 1f,0.0001f,Time.deltaTime); // 0.99
so I am not quite sure
I am calling the SetFloat only once.