Two fingers rotation of an object

hello all.

does anybody know of a library/code/solution that would show me how to implement a two fingers rotation of an object ?

I'd like to be able to touch an object with two fingers and then rotate it clockwise or counter-clockwise depending on the fingers movements

thank you!

Take a look at the multitouch sample code that comes bundled with Corona, it has examples of pinch-to-zoom and things like that. If you just changed it to modify the .rotation property rather than the scale property, along with some other minor tweaks, I'm sure you could accomplish two-finger rotation fairly easily.

That is, if you're comfortable with SINGLE touches first. If not, I'd suggest familiarizing yourself with exactly how single-touches are handled, and become well-versed in that before attempting to look at multi-touch (it can get confusing if you don't understand touch events to begin with).

views:1684 update:2011/10/29 17:13:10
corona forums © 2003-2011