Rotate attached object

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



thanks in advace!

http://www.jmonkeyengine.com/wiki/doku.php/rotate_about_a_point

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

thanks

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





timer.update();

interpolation = timer.getTimePerFrame();

rootScene.updateGeometricState(interpolation, true);