arypbatista / godot-swipe-detector

Detect gestures and swipes in your game
MIT License
124 stars 15 forks source link

Improve gesture detection #5

Open arypbatista opened 7 years ago

arypbatista commented 7 years ago

Improve gesture detection accuracy and add an option to force gesture and pattern to share drawn direction (see below).

Match pattern regarding direction/rotation*

A gesture could match a pattern if we rotate the pattern. For example, different spiral could match a single spiral pattern or we could match different pattern depending on how spiral was drawn. We could also want to match any spiral no matter if it was drawn clockwise or anti-clockwise.

Spiral 1 Spiral 2

blurymind commented 7 years ago

http://depts.washington.edu/madlab/proj/dollar/index.html

also https://github.com/arypbatista/godot-swipe-detector/issues/16

blurymind commented 7 years ago

please improve it. It is very poor atm

circles get recognized as squares and squares work 10% of the time.

If you dont spawn 8 markers, nothing gets recognized.

The approach i linked to above has none of those issues and is easy to train with more than one input entry per shape