Hello Folks!<br><br>I am creating a game where you need to swipe to impulse objects. I didn't see any tool to help me with this so I created one.<br><br>
<img src="https://github.com/arypbatista/godot-swipe-detector/blob/master/docs/trail.png?raw=true" alt="" title="Image: https://github.com/arypbatista/godot-swipe-detector/blob/master/docs/trail.png?raw=true">
<br>Swipe Detector is a swipe detection script that monitor screen input (mouse/touch) triggering different signals informing swipe progress or swipe finalization. There are a lot of configurations available to indicate detector when to consider a movement to a swipe or to indicate the precision of the detected swipe curve. On swipe end you will obtain a SwipeGesture object that holds swipe information such as duration, speed, distance (from initial point), points, Curve2D.<br><br>I am planning to include some curve detection library (or maybe do it as something separate) so you can verify if a SwipeGesture output matches a specific gesture. Or maybe it can be a separate tool where you can add different gesture expectations (curve, duration, speed) and with trigger signals informing different gesture detection. Please, reply with your ideas!<br><br>For documentation and usage see the README.md in repository. See the example folder for examples, there are many of them.<br><br>GitHub Repository:<br>https://github.com/arypbatista/godot-swipe-detector<br><br>Godot Asset Library URL:<br>http://godotengine.org/asset-library/asset/23<br><br>For last documentation updates, see the README.md in repository.<br><br>