You will need set 1st touch of swipe.
- On any Touch start
=> firstTouchX = Touch.X, firstTouchY = Touch.Y.
- Is in Touch
=> lastTouchX = Touch.X, lastTouchY = Touch.Y.
=> angleOfSwipe = angle(firstTouchX, firstTouchY, lastTouchX, lastTouchY).
- On any Touch end
=> Set angle of motion for your player = angleOfSwipe.