how i make a circle or object rotate with my finger?
a similar example will be like those old phones that had a wheel with circles numbers, i want to touch a circle in one corner and with my finger make a circle and i want this actor to rotate following my finger. i try to constrain my circle rotation to mouse position x + y, but if don't work like i want.
Answers
rotate to angle-(vectorToAngle(touch1.x-self.position.x,touch1.y-self position.y)) relative to actor