✅ Solved: Time-based interpolator does not work when applied to a numeric view model property
I have bound a numeric view model property called ‘Position’ to the Y value of a joystick handle so that the joystick handle can be moved by code.
However, when the user presses a button, the joystick handle should move to a specific position (calculated by a formula).
So I created another numeric view model property called ‘Current’ and a formula converter for this position. Then I applied a listener to the button that executes the action ‘set Position to Current-Formula’.
This works well so far, but I want the joystick to move there slowly. So I created a new converter group called ‘FormulaOverTime’. Then I created a time-based interpolator with Time: 500 ms and an interpolation curve. Finally, I placed the above formula and the interpolator together in the converter group: the formula above and the interpolator below.
I changed the listener action to ‘set Position to Current-FormulaOverTime’ accordingly.
Now, when I click the button in play mode, the joystick handle does not move to the calculated position over 500 ms, but still jumps there immediately without interpolation.
Is this a bug or have I overlooked something? Thanks in advance for your help!