Continuous orbiting

Hey guys, I’m really new to Unity and I have no experience in coding whatsoever. What I want to achieve at the moment is having the capsule (the player) to orbit around the sphere (planet) continuously using c# only. And I’m not sure if I should save this question for another time, but I also would like the player to continuously shoot at one spot, only if for example, the space bar is held down, then to change direction, double space quickly to change.

The planet may change in size and move in position, so is there an equation that allows the player to orbit the sphere equally, possibly using the equation 2pir, even though it’s 3D?
Thanks guys!

You can use transform.RotateAround: Unity - Scripting API: Transform.RotateAround