I have to make a model of the solar system using the OSG libraries. I have created all of the planets and the sun and got the orbits of the planets working correctly, however I can't see how to get the planets rotating around their own axis, while orbiting the sun.
I believe the problem lies with the fact that I have declared everything globally, with positions and orbits relative to the origin of the scene, so now I need a local rotation, I can't do it. Am I correct about this? And how would I go about fixing it?