Hi!
Eventually Id like to do this with a finger on a iPad, (how do you test that actually? Do you have to build and upload to iPad everytime?)
Anyway.. I need to be able to drag on the object and rotate it. If you drag left it rotates left and vice versa.
This setup, (see pic ) doesn't work, obviously very simplified approach, but how should I achieve this.
I would like it to also be ONLY if you actually click the object itself, but this example was supposed to be just anywhere in the screen...
If its not obvious.. I was "trying" to get the mouseX, store it, and then add it to a new position of the mouse, as long as mouse is held down. If released, reset var to 0 (was expecting to go minus if you move left, but as all floats I get are 0.somthing.. its doesnt work as expected..
What next?
Cheers
MArk