Lerp node spirals out of control with enhanced input action.

Hey,

I’m not entirely sure how to explain this, But I’m using the lerp Node with an enhanced input action.

This system works beautifully. If…. You use one finger at a time. If you mash both input actions or hold one and flick the other one. This rapidly causes the float value to spiral uncontrollably.

Not entirely sure how to fix this? Or is there a tick box I’ve missed stopping multiple inputs or to only take the last input at a time or something.

It seems to rapidly multiply against itself until it explodes.

1 Like

I’ve never used ‘triggered seconds’, does it just get larger? In any event, the lerp is expecting a value between 0 and 1.

One way to make sure it stays under control would be with a clamp node.

1 Like

Omg.. Yeah… I guess because I’m holding it down and mashing the other Key. It’s not the mashing, It’s the length in which I’m holding the key to do the test to prove the mashing, lol. I got positively bamboozled.

This is my current fix, It feels a bit clumsy but works currently. Essentially just stops or starts the timelines when it needs to tilt.

Giving the effect of speed with a touch of tilt.

Thank you for the assistance. That caught me out for a few hours.

1 Like

Ok so Its much smoother and no longer spirals.

But You can still hold backwards, Push forwards and Itll suddenly go from -1 to 1 with no interpolation between them.

This feels like one of those times when multiple inputs is allowed, and I want it turned off. So I need only the last input on that enhanced input to be accepted.

Yeah, just tested. You can hold down S = -1 and then push forwards, and it doesn’t change the value to 1. it just sits at -1 till I release S.

Do you just want to run or reverse one timeline? I’m not quite clear on the logic…