- Home /
TouchScript Pan Camera & Sending Messages to Other Objects in Scene
Hi, I just started playing with TouchScript (https://github.com/TouchScript/TouchScript)
I am wondering about 2 things in particular:
How to use PanGesture in order to pan the camera.
How to use Transformer2D with a separate object using a gesture script.
I am able to implement the PanGesture script with the Transformer2D script on the same object, however I cannot for the life of me figure out how to have PanGesture on one object, and Transformer2D on another object reacting to the PanGesture script on that separate object.
Moreover, if the above can be implemented, would this be the best way to have the camera move along 2 axes?
In the scene I have a 2D map, and I would like to pan the camera over the map (similar to how Google maps uses the hand to move the map). As it stands, I have the PanGesture script added to the map object so that when you pan the map, the gesture is instantiated. I do not want to move the map; I need to move the camera (for performance reasons).
Any help regarding this is greatly appreciated,
Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220613183727im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Reproducing the "spin" effect of Flick Kick Football 1 Answer
Turning touch to rotation 1 Answer
Rts touch select unit 2 Answers