Procedural orbit animation - Solar system builder
Procedural orbit animation
Sets your object on a customizable orbit around another specified object.
This setup lets you configure orbit radius, period, direction, as well as other parameters associated with planets, such as rotation period, rotation direction, axial tilt etc. I recommend playing with this setup to test all the possibilities.
Adding moons
The orbit node setup also allows you to add secondary objects orbiting around your primary one. To do that, you have to go into the geometry nodes tab.
To add a moon, simply connect the Position output of the Planet node to the Planet position input on the Moon node, the connect the geometry output of the Moon node to the Join geometry input. Then you can configure the values in the Moon node. The Planet and Moon nodes work mostly the same, with the only significant difference being that the Planet node works with the original geometry, while the Moon node introduces new geometry into the node tree.
You can also add multiple moons to the same planet
Or add more objects orbiting around your moons
Known issues:
Problem: The orbit node tree breaks procedural materials on "moon" objects.
Procedural materials often use Object coordinates. Moon objects in the orbit node tree have their geometry added to another object, so the object coordinates are incorrect.
Solution: Bake textures before using the node tree.