Question by
test19user66 · Nov 30, 2021 at 02:42 PM ·
mobilemobile devicesswipefps controllerfpscontroller
standoff 2 like character swipe
I want to smoothly increase and slow down the rotation speed according to the scroll speed while trying to rotate the character left and right. How can i do this? Current code here but it's not smooth.
Vector2 deltaPosition = m_Touch.deltaPosition;
Vertical = deltaPosition.y;
Horizontal = deltaPosition.x;
endposition = m_Touch.deltaPosition;
var moveSpeed = m_Touch.deltaPosition.magnitude / Time.deltaTime;
Comment
Your answer
Follow this Question
Related Questions
How do I make the shoot button move the screen too? 0 Answers
I have problems adapting my game to different screens 1 Answer
How can I assign swipe positions to the array as parameters? 0 Answers
Sizing pixel art for game camera 0 Answers
Movement is jittery on Unity Remote,Movement jittery on a mobile device 0 Answers