I’m trying to set up leaning of a motorbike tied to the input axis value of the A nd D keys. I figured an easy way to do this is to just get the axis value of the keypress and multiply it by a lean amount float (30) and then set the relative rotation of the mesh on the X axis which works great. Only problem is that key presses instantly go from 0 - 1 whereas a gamepad thumbstick will blend the value based on how much you press it. I can’t for the life of me figure out how to blend the value so that it’s gradually leaning instead of instantly jumping to the new rotation value.
Should I create a leaning animation and use a blend space for this? I figured just rotating the mesh would be easier.