great explanation... but I wanna know how to calculate those things...

I already can position and rotate stuff... but I need to position the "earth" with an offset to the "sun" (and + rotation from the sun, like they are welded together)