Rotate attached object

How can i rotate objetct oround another object, like a moon arround the earth

thanks in advace!

Hi i use the same code (from this example )but simple dosen't update the rotatio of the object, i'm using a class extends from BaseGame and not from SimpleGame , any clue if what can happend


i solve it, the problem was  i forget this lines ( ups! )


interpolation = timer.getTimePerFrame();

rootScene.updateGeometricState(interpolation, true);