Detect a swipe left or right to move object?
Hi. In my scene objects are spawning and I have made a Raycast to detect the objects but all it does so far is destroy them by touching them, which I did just to test the Raycast. What I want to do is to swipe them away, left or right. To do this I was thinking I would need to know how to detect my swipe going left and right so I can tell the game to move the object left or right based on the swipe direction.
So how can I detect the left and right direction of my swipe?
Thanks in advance!
Comment