Rotate Around Planet with Spaceship Face Set on Path

I want to rotate a spaceship around the planet with spaceship not looking towards planet but on it’s moving path.

I have created a rough image to explain my point:

I have this code through that I can able to rotate around my spaceship to the planet:

 transform.RotateAround(GameController.Instance.planetsList[0].transform.position, Vector3.forward, rotationSpeed * Time.deltaTime);

But still, my spaceship looking towards the planet that I want to stop and look at towards it’s circular path.

Please give me some suggestions to achieve this.

Transform.RotateAround() translates the cartesian position of the actual mesh. Where as Transform.localRotation property will rotate the mesh around its center. Transform.rotate will rotate around the world space.

You will need to call Quaternion.Euler() to determine the rotation angle around the center point.

Euler function takes in the angle you wish to rotate which in your case would be rotationSpeed * Time.delta.

transform.localRotation = Quaternion.Euler(0f, rotationSpeed * Time.deltaTime, 0f);

some assembly required you might need to calculate the rotation angle separate before creating the Euler transform.