Question by
lalamax3d · Apr 06, 2016 at 06:58 PM ·
controllertouch controlsswipe
detect rotation direction (clockwise or counterclockwise) from touch drag gesture or swipe.
Hi Everyone. i am trying to solve a simple problem. controller (one finger touch) if person click on screen and do circular swipe, i wanted to detect clockwise or counter clockwise.
starting point, easy touch swipe gesture (onswipestart, onswipe,onswipeend) events are there. my current status is like, in, onSwipe Event Handler, i can check gesture.direction which returns vector2. plan or thought is like, i should compare previous direction with current and possibly can decide any ideas?
Comment