Hi,
Ok, I discovered thanks to the new asset store Madness session that a more afforrable touch gesture recognizer exists:
http://u3d.as/content/song-game-dev/input-touches/2Tfso, I am going to cover that framework for Unity ( currently cooking Vectrosity as well
), and I'll start with this swiping case
I'll of course put it on the wiki, but it was just the rush of finding a new toy to play with before going to bed
For the tempted people:
1: get InputTouches framework if you don't have it already
2: import the InputTouches package in the turntable scene or else of course...
4: import the package attached to this post
5: select the playmakerGlobals_EXPORTED asset in the project browser, and select the menu "Playmaker->tools>import globals", you can delete it once imported.
6: Drag to the scene the "gesture" prefab from the folder "InputTouches/InputPrefab"
7: Drag to the scene the "PlayMakerInputTouchesProxy" prefab from the folder "PlayMaker InputTouches"
6: in the turn table "MANAGER" Fsm add the global event "INPUT TOUCHES / SWIPE LEFT" to the state "Add a pending turn"
Done!, everytime you will swipe left ( with the mouse or with the device) you will make the cube rotate. You have a great level of control over the swiping detection in the gesture prefab, so be sure to read the doc, even if you are not going to script it, it's important to grasp the possibilities and flexibilities offered.
currently, the following global events are available:
"INPUT TOUCHES / SWIPE LEFT"
"INPUT TOUCHES / SWIPE RIGHT"
"INPUT TOUCHES / SWIPE UP"
"INPUT TOUCHES / SWIPE DOWN"
you'll notice the "/" this is so that when you select a global event, it's all organized nicely in the various drop-down menus, so as you want to add that global event, look for "CUSTOM EVENTS" then "INPUT TOUCHES" then "SWIPE LEFT"
More to come
this is just the beginning.
If you have any questions, do not hesitate!
Bye,
Jean
ps: That doesn't count as my future attempt for an *all* playmaker swiping system, so don't worry, that will come as well within the next few days.