FInterp To Happens Instantly

I have 2 actors with a “Pressure” variable and I’m trying to make a system to slowly move pressure from one actor to another. I’m using FInterp To in order to make the transition slowly but for some reason it does it in a single tick.

I verified every input that goes in to be the correct value and tried switching formulas and switching to FInterp Constant but I’m getting the same results.

For example I have 2 actors, one with 30 pressure units and other one with 0. I want the pressure to slowly distribute evenly between them, finishing when both have 15 pressure.

It doesnt work because you most likely put it in a fire and forget node so it doesnt tick you either use a timeline,forloop step int or event tick. and then because of you putting it in a node that fires once you get the delta seconds at an instantaneous point not through time.

The first thing is you should use something that ticks like an animation, then you use the alpha from it, and you can you lerp instead of Flerp (depending on the context it is less of an expensive operation, in your case you are just going from point a to b for a single float). Hope this helps

Thanks for replying!
this function is being called at every Tick fire, I even tried taking it out from function to the event graph but it didn’t help. I don’t want to use Lerp or Timelines since I want it to be continuous and gradual (which is exactly the use case for Interp functions)

Found out what was wrong, I just connected the pins wrong for the formula, the Minus node after the FInterp needed to be the return value of the FInterp minus the current actors’ pressure

guess the solution in the end was just to be less stupid :sweat_smile: