Another Swipe Question

Hey everyone! There are alot of questions about swiping and I have another one. Im at an intermediate level of scripting and using Unity I cant figure out the swipe gesture. I want to know if i can make an Android game where when a players swipe on the screen, the charaacter throws an object but does not move. I also want the range to vary depending on the strength of the swipe.

Get the startingpoint and current point with the touch input. With those values yu can get direction by subtraction. Find the distance between the two points can get you the strength