How to get drifting camera movement like Star Wars Galaxy of Heroes mobile (Android or iOS)
Hey everyone,
I'm building a game where you have a "main screen" and you can select to go into different levels from it. If you know Star Wars: Galaxy of Heroes, you're in the cantina and you can slide your finger and the screen moves across the x axis. If you slide quickly and let go, the screen keeps moving and quickly slows to a stop but there's no jerkiness.
My thought was to take the distance/speed of the finger swipe and write a quick little algorithm to store a variable and keep the camera moving and cut the speed it was moving in have each update so it slowed to a stop, but I can't seem to get it.
I've tried to find something premade in the asset store and messed with this a while. I'm hoping someone else may have experienced this and could point me in the right direction.
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612081652im_/https://answers.unity.com/themes/thub/images/avi.jpg)