Increase a value with inertia

Hello everyone !

I was wondering how one would do the following:

  • Let’s say, I have an input going from 0 to 1 (axis)

  • I map it to be something else (let’s say 900 to 9500)

  • I want to add a sort of inertia in this mapping, like it is “delayed” to increase & decrease, like it’s not following the Axis Value, but has a slight delay.

Anyone have on idea on this ?

Thanks all for any help that could come !

If you want to make a smooth update, you can use FInterpTo node to change the value.

Yes, I know the use of Finterp, and it’s not quite exactly what I’m looking for. I’m looking for a way to add a sort of “lag” to the increasing & decreasing of the value. So let’s say that the axis goes from 0 to 1 in 0.1 second. Even with Finterp, the value will follow correctly. What I want is that my value takes time to reach the matching output, and if I release my axis, once again, the value takes time to match the corresponding output.

Well you can do exactly this with FInterpTo… If you want to add a single lag before changing the value, you can use the Delay node. Another option is to use a Timeline – it will allow you to set a custom curve for value update speed. I’m still have feeling that I did not completely understood what’s exactly you’re trying to make. Maybe you can rephrase or clarify more what’s your goal with this task?