Basically I need a suggestion that would replicate the earth revolving around the sun. Simultaneously, the earth revolves around the sun and about its own center of gravity.
I have objects that need to rotate about their center of gravity (ie. earth) while also being rotated and translated about a local center of gravity (ie. sun).
I currently generate every object at the origin within its own list and translate each list to its initial position within a Draw routine.
Starting at the center(origin) rotate the amount that you want the orbits position to be at, then translate out the orbit distance, then one final rotate for the planets rotation about its own axis. If you want a moon, you would then pop the planets rotation rotate off leaving you at the center of the planet. Then rotate the amount of the orbit for the moon, translate out the orbit distance, rotate the moons rotation amount and draw.