Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Gesture Recognizer

An asset by Little Fish
The page banner background of a mountain and forest
Gesture Recognizer hero image

Quick Information

0 ratings
Gesture Recognizer icon image
Little Fish
Gesture Recognizer

Gesture recognizer is a godot addon, this addon allows you make and recognize gesturesIt's based on $Q Super-Quick Recognizer

Supported Engine Version
4.2
Version String
v0.4
License Version
BSD-3-Clause
Support Level
community
Modified Date
9 months ago
Git URL
Issue URL

Gesture Recognizer Godot

README Addon front page.

Whats is?

Gesture recognizer is a godot addon, this addon allows you make and recognize gestures It's based on $Q Super-Quick Recognizer.

How to use?

Add the Gesture node to the scene, this node requires a CollisionShape2D as child.

README Node in selector node.

Classify Gesture

When you have been draw a gesture, you can classify for three differents ways:

  • Call to classify() fuction:

    func test():
      Gesture.classify()
    
  • Make true the property Classify Gesture:

    func test():
      Gesture.ClassifyGesture = true
    
  • Assign a classify button from inspector.

README Classify buttom from inspector.

Create Gesture

First you must activate Create Gesture on te inspector in the Gesture node.

README Create gesture from inspector.

Run the scene and draw youy gesture, when you end your gesture, you have to classify with the same ways the Classify Gesture or click on create button.

README Classify buttom from run game.

And then set name to gesture and save them.

README Classify buttom from run game.

Properties

Line

  • Cap Mode: Round the begins and ends of the lines.
  • Min Length Line: Length minimum for valid line, if length line is minus than this valor, the line will be erased.
  • Line Width: Width the line.
  • Smooth: Smoothing of the line stroke.
  • Line Color: Color that the line will have.
  • Width Curve: Makes there are different thicknesses along the line.

Outline

  • Outline: Add a outline at the line.
  • Outline Width: Width the outline.
  • Outline Color: Color that the outline will have.
  • Line Cover Line: Makes each new line lie on top of the previous lines, only works if outline is true.

Create Gesture

  • Create Gesture: The Gestures that you draw will be saved.

    You can save multiple gestures with the same name.

Settings

  • Touch: Use the touch screen for drawing.

  • Custom Button: Use a custom input for drawing.

  • Custom Buttom UI: If Custom Button is active, you should put here the ui of the input to use.

    If touch or Custom Button are not active by default the mouse will be used.

  • Custom Dir: Make true if you want use a custom gesture directory

  • Custom Dir UI: Write here the directory without "res://" and the last "/". Example: If you directory folder is "res://gesture/level_1/" you must write "gesture/level_1"

Classify Gesture

  • Button For Classify: Use a custom input for classify the gesture.
  • Button For Classify UI: If Button For Classify is active, you should put here the ui of the input to use.

Signals

  • gesture_name(gestureName : StringName, disCloudPoint : floeat): When the classified ends, this signal returns the gesture name and the similitud percent.
  • line_disappear(points : Array): Just before the line has been erased, return an array with the line points.
  • on_draw_enter(): When you start to draw the line.
  • on_draw_exit(): When you finish the current line.

Fuctions

  • classify(): When you draw a gesture, call this fiction to classify them.
  • isDrawing(): Check if you are drawing, bool.

Installation

Asset Library

  • In Godot, open the AssetLib tab.
  • Search for and select "Gesture Recognizer".
  • Download then install the plugin (be sure to only select the gesture_recognizer directory).
  • Enable the plugin inside Project/Project Settings/Plugins.

Github Releases

  • Download a release build.
  • Extract the zip file and move the addons/gesture_recognizer directory into the project root location.
  • Enable the plugin inside Project/Project Settings/Plugins.

Contribution

You can report bugs and request features Here

Credits

BSD License

Gesture recognizer is a godot addon, this addon allows you make and recognize gestures
It's based on $Q Super-Quick Recognizer

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Gesture Recognizer icon image
Little Fish
Gesture Recognizer

Gesture recognizer is a godot addon, this addon allows you make and recognize gesturesIt's based on $Q Super-Quick Recognizer

Supported Engine Version
4.2
Version String
v0.4
License Version
BSD-3-Clause
Support Level
community
Modified Date
9 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers