- Home /
Detecting an object under a swipe gesture.
hey guys, I'm wondering the best approach as to how to detect an object that has been hit when the player has gestured a swipe (not just a tap) on the iPhone. Is it simply a case of detecting when the gesture is recognised as a swipe ( so when the touch deltaposition is beyond a threshold) and then invoking a raycast every 'x' seconds while the game is in this state? Or am I overcomplicating the issue? Thanks for any suggestions.
I guess in depends whether you want a swipe to start on an object or just pass over it?
I want to detect if an object is 'under' a swipe as the finger is passed over it.
Your answer
Follow this Question
Related Questions
get/return the touched object name when i touch on the screen 3 Answers
How do you make objects stop rotating around the hand when using Magnetic Pinch? 0 Answers
iPhone / iPad touchscreen input in update or fixedupdate? 1 Answer
Can certain IOS system gestures be disabled in my IOS app? 0 Answers
how to tap on a .fbx file(including a group of objects) without adding 'box collider' component? 0 Answers