I'm creating objects every second, two types, both of them spawns (potentially) infinite objects:
Is touching objectOne
- Set Touched = 1
- set t_TouchX_s = Touch.X
- set t_TouchY_s = Touch.Y
On touch end && Touched == 1
- Set Touched = 0
- set t_TouchX_e = Touch.X
- set t_TouchY_e = Touch.Y
- objectOne Physics Force distance(t_MouseX_s, t_MouseY_s, t_MouseX_e, t_MouseY_e) toward (t_MouseX_e, t_MouseY_e)
This applies the force to ALL objects of that type. How can I make it that it applies the force only to the one I originally touched. I understand that I could set the UID in a variable, but that would mean destroying the multi touch! And things gets a lot more complicate since I have two types of objects.
Anyone has a solution?
Thanks