Planetary rotation and orbit