Hi,
After
reading an article on Lerping, I realize how much more can be done with this then just smoothing out values.
I needed to create some exponentials for joystick input control and created this action. instead of using lerp as a linear interpolation, I inject some math on the amount of lerp you want to create effects like easein, easeout, quadratic ( expo ) or smoothness.
it assumes several hypothesis to work well. The amount of lerp has to be normalized ( between 0 and 1), BUT I have added the possibility to range from -1 to 1, so that you can inject your Input value straight away without worries and it deals with the negative values automatically.
And so typically, if you want exponential on your joystick input, use this action like this:
from float: 0
to float:1
amount: your joystick input value
interpolation: pick the desired effect, choose quadratic for exponential.
and boom, your input will react slowly around the center and as you go right to the max value of the joysticks it reacts faster. It's great for better and more intuitive feeling of controls ( aiming and accurate controls for flying or steering)
Bye,
Jean