Hi. I used the Scrolling actions to allow scolling up/down in my app.
It works fine for now but it stops immediately and has no smooth scrolling (getting slower over time). Does anyone already have a good example for this?
I used this code for scrolling:
+ Touch: Is in touch
----+ System: -110 ≤ Touch.AngleAt(0) ≤ -70
-----> System: Set scroll Y to ScrollY+Touch.SpeedAt(0)×dt×5
----+ System: 70 ≤ Touch.AngleAt(0) ≤ 110
-----> System: Set scroll Y to ScrollY-Touch.SpeedAt(0)×dt×5
I tried a few things with saving last angle and last scroll speed with lerp but it did not work and jumped around instantly. Any ideas?