Hello,
I have a lerp value between 0 and 10. The value it spits out go into a variable called Power. Right now, the lerp is linear. In other words, if the lerp spits out 4, then Power will be 4.
Is there a way to make it a ease in a bottle neck effect?
Thats just an example of how the lerp bottleneck will work. It’s so it feels like theres resistance, or tension within the value.
Imagine pulling something elastic, to begin with its fairly easy to pull, and the power increases easily. But after a certain point the power begins to resist, hence a ‘bottle neck’ effect (kinda).
In my app, the user pulls back on a graphical ‘elastic band’ type object. So I want it that when the user reaches near the ‘10’ point within the range, the lerp pullback decreases.
I hope I’ve worded this correctly.
Thanks.
---- Update ----
I’ve done this:
var resistance = ( ( (power / power) * 20 ) / power * 400) / 20;
20 being the max clamp of power. This kind of works, although its the opposite way around. To being with, the values are very close to one another. The closer power comes to 20, the more spread out the values are - so its the opposite way around.
Is there a way I can just use a formula from a curve, and use that?
I tried using the fomulas from this site: http://www.gizma.com/easing/
But the params it requires include time, and duration - something I’m not using, so how would this work?