My probleme today is I want that an object turn around an other. Like the earth turn around the sun. I programm with Java.
I have my camera as the referential point (The sun), and on object that need to turn around this referential point (The earth).
I know :
- The distance between the 2 objects : d
- The position of the camera : pCam
- The position of the object : pObj
- The angle that I need to rotate : a
I want to find the new position of the object after it rotate of the a angle around the referential position pCam in a distance d.
Can you help me ?