Increase animation speed according to the swipe speed in unity for Android
- by rohit
I have the animation done through Maya and brought the FBX file to unity. Here is my code to calculate the speed of the swipe:
Vector2 speedMeasuredInScreenWidthsPerSecond =(Input.touches[0].deltaPosition / Screen.width) * Input.touches[0].deltaTime;
Now I wanted to take speedMeasuredInScreenWidthsPerSecond and use it to increase the…