Trouble getting the right Interp Speed with 'FInterp To' node
29. Červenec 2024 v 11:54
I was following this course using UE5 version 5.4.2 and building a "Handle Rotation" graph for a door that looks like this:
I encountered this problem:
setting the Interp Speed
to anything but 0 makes the Return Value
wrong.
I mean that, as I understand FInterp
, it should eventually return the Target
value, but in my case interp speed just makes the value wrong.
For example (Current = 0
, Target = 90
, Delta Time = World Delta Seconds
, Interp Speed = 3
) the return value of this is equal to 0.375.
I used event tick to set the delta time but it changes nothing.
Just setting the speed to 0 makes it work, but that is the problem, I want smooth rotation for my door.