Here’s a quick mock-up:
Code:
Blueprint Variables:
There’s the base BP_Body with children for the Sun, Earth and Moons etc. Just right-click the BP_Body and create child blueprint, in those change the material for the star/planet/moon etc and set the distance, rotation speed, orbit speed and tilt (-100 → 100) and select the “parent” body to orbit around, the suns parent can be left empty.
Then just add them to your scene, attach moons to their planets and planets to the sun:
To get the day of year, take the (OrbitRotation/360)*365 and for the time of day take the (RotationAngle/360)*24
To get the moon to always face the earth, you’ll just need to find the correct rotation speed that matches the orbit speed.