@rbhfst,
in pseudo code here’s how you can acomplish it
get the touch, each touch is identified by it’s own ID, so you will know which touch is which.
now if you are using the two fingers to rotate, then you would have two moved events, check for the position of the last touch for that id and the current position for that touch. You will get a dMove (difference of the touches) and the two touches *should* be exactly opposite of each other. if one is increasing, then the second should decrease.
,-----.,-. \
,' (`1 ) `.
^ ,' `-'. \
| ; : :
| | | |
| ;-. ; v
: ( 2.) ,'
\ `-'`. ,'
`--- `-----'
now you can rotate the object with that delta.
cheers,
?
[import]uid: 3826 topic_id: 17071 reply_id: 64142[/import]