I want to position the camera on the planet by retrieving the current planet position Z coordinate position only

I want to get the planet position (x, y, z) and let the camera follow the planet.
However, the planet sticks to the bottom left.
So, I want to get the position of the planet and add only the Z-axis coordinate values ​​so that the camera will follow the planet. I do not want to be placed on top because it is imported from outside.


The easiest way is to group camera with the object and move the group. The camera will follow the planet.
You can also make a forever loop, that takes the planet’s position, extracts the Z coordinate and sets that Z coordinate to the camera position.
I would recommend to implement thee first option.

And do not forget to set camera to fixed position.