I'm using the function Transform.RotateAround in order to make my player rotate around objects in my game, it's the main feature.
The thing is, when I'm making my levels harder and make the objects (that the player rotates around) dynamic and add some movement on the X & Y axis, the rotation movement is inconsistent, obviously, since the function recalculates each frame a different pivot to rotate around, the player distance from the object changes and not staying static throughout the rotation cycles.
The question is, is there a way to get around this and make the player rotate around the object in a static, permanent distance from the object even though it's moving?
Maybe by predicting the movement of the object or somehow "diffusing" the effect of the object movement..?
Any comment would be helpful.
Thanks in advance!