So I have a working drag object FSM now. I actually have a solution to my problem, but it doesn't feel like the best one. I hope anyone have a better one to share.
In my FSM I have that I can click on an object (a shirt) and it gets selected. I can then click on a target object (a box) and the shirt will be animated/moved into the box. I also have it so that you can drag the shirt. This is where it gets tricky. I have made a rect in the area of the box and use rect contains. So when the finger stops, it moves over to rect contains state and checks if rect is true or false. If true it moves over to the animation/move state, all is good and if the finger stops outside of the rect the item moves back to its original position.
I am now making a few of these FSM in different scenes and I am not to happy about the rect thing. I think it would be much smarter if I could use the box as target or the box collider in some way.
If rect is the way to go, I would appreciate some help in how to calculate where it should be. As it is now I have to guess (since I cant see it) and then build to Ipad and try, and then back and change etc. It is pretty time consuming and boring.
Hope anyone has any idea. Cheers
P.S Website for our app is soon up so you can see what I have been working on