In a video game I am I'm working on I'm trying to rotate an object around a secondary object. The secondary object will always be in the exact center and the rotating object will always rotate in a circular pattern. As the object rotates around the central object I need to determine how far along the circle the object has traveled (in degrees). Here is a more abstract representation of the problem:
Above I have two circles showing two examples of the problem I'm trying to solve. x1,y1 represents the starting point of the object that is rotating, x2,y2 represents the current position of the same rotating object and x3,y3 represents the object around which it is rotating. I need to calculate in degrees the distance traveled around the circle at any given point in the rotation. The object will never rotate around the circle more than 360 degrees. The radius will be variable but will be a known value that can be used in the equation. I will need an equation that can calculate the distance traveled up to 360 degrees.
Appreciate your help friends!
