Tracking multi touches independently
Hi there. I'm new to GS and have read most of the posts on multi touch that I could find.
Is there a way to have several actors independently move around to touches? Say I have two blobs in the scene and I want the user to move them freely using two fingers at the same time. The blobs would not be constrained to independent areas of the scene.
Because the blobs could fire touch events in any order, I can't know which is Touch 1 or Touch 2 until the event is triggered. And so I can't see, in the expression editor, how I could index the touch programmatically. In my mind I'm thinking: if touch is fired on this actor, make a note of which touch it is. Then reference that touch later when moving the actor. But in expression editor, when I create a constrain attribute for the actor's position, I don't see how I can index in to devices.touches.blah to identify which touch I want to track. Am probably going about it the wrong way as am new.
Is there a way to have several actors independently move around to touches? Say I have two blobs in the scene and I want the user to move them freely using two fingers at the same time. The blobs would not be constrained to independent areas of the scene.
Because the blobs could fire touch events in any order, I can't know which is Touch 1 or Touch 2 until the event is triggered. And so I can't see, in the expression editor, how I could index the touch programmatically. In my mind I'm thinking: if touch is fired on this actor, make a note of which touch it is. Then reference that touch later when moving the actor. But in expression editor, when I create a constrain attribute for the actor's position, I don't see how I can index in to devices.touches.blah to identify which touch I want to track. Am probably going about it the wrong way as am new.
Comments
BTW Touch 1 is the first touch! Touch 2 is the second, and so on.