Object flips when dragging
Hello!
I have been using this tutorial to implement drag and throw for my iOS game.

It works really great but when the object I keep dragging against other objects, the dragged objects flips. The same happens if I don't move my finger while dragging the object.
I think it comes from the Vector to Angle conversion but I don't know how to solve this. Any idea?
Thanks!
I have been using this tutorial to implement drag and throw for my iOS game.

It works really great but when the object I keep dragging against other objects, the dragged objects flips. The same happens if I don't move my finger while dragging the object.
I think it comes from the Vector to Angle conversion but I don't know how to solve this. Any idea?
Thanks!
Answers