GestureControlledCamera2D icon indicating copy to clipboard operation
GestureControlledCamera2D copied to clipboard

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.

GestureControlledCamera2D

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.

Demo

Demo

How to use

1 - Seting up Godot Touch Input Manager

  • Dowload the latest release from https://github.com/Federico-Ciuffardi/Godot-Touch-Input-Manager/releases
  • Extract the downloaded .zip file somewhere in you project
  • Locate the extracted InputManager.gd, and Autoload it.

2 - Using GestureControlledCamera2D

  • Dowload the latest release from https://github.com/Federico-Ciuffardi/GestureControlledCamera2D/releases
  • Extract the downloaded .zip file somewhere in you project
  • Add the extracted GestureControlledCamera2D node (GCC2D.tscn) to the scene and make sure to set Current to On
  • Customize the script variables to your liking (optional)

Check out the example!

Script variables

Name Description
Max Zoom The camera will not zoom in any further than this
Min Zoom The browser will not zoom out any further than this
Zoom Gesture The gesture that will control the camera zoom
Rotation gesture The gesture that will control the camera rotation
Movement Gesture The gesture that will control the camera movement

Versioning

Using SemVer for versioning. For the versions available, see the releases

Authors

  • Federico Ciuffardi

Feel free to append yourself here if you've made contributions.

Note

Thank you for checking out this repository, you can send all your questions and feedback to [email protected].

If you are up to contribute on some way please contact me :)