Question regarding how to implement swipe gesture.

Hi,

So far I’ve done all my swipe things with gameUI’s touch code and have been OK with it, even though I don’t understand some of it’s code.

For a prototype I need to implement a gesture that I wanted to ask you guys advice about how to implement it.

Imagine there is a small bowl of fruit that you throw foods from with swipe, like this: you touch the bowl, move your finger out of the bowl and release your finger, then the a food is created and follows the path of your finger. My problem is how to find the angle and the finger traversed on the screen, so I can throw my food object accordingly.

I know how to drag and drop objects, but not this specific swipe effect.

Thanks.