How can I pivot the camera around the center of a sphere while following a character?

Please help the noob. >.<

I want the camera to track the player while pivoting around planet center. The camera is independent of he player such that when a character moves up the planets z-up vector normal, it gets closer to the camera.

For clarity, I want the character to seem like it is rotating in place, dead center of the screen while the globe spins under foot.

The pivot point is at 0,0 so this seems to partially work, but the camera continues to roll and yaw.

Assuming you can position the camera above the player, to make it look in the same direction as the player and downwards, use

1 Like

Thanks so much for your help. It feels like I am getting closer to the solution, but I am still stuck…
Reddit - Dive into anything
I made this video explaining what I think needs to happen. Is it possible to reference separate objects direction to get a forward vector for movement? cheers

I think that’s what I did here :slight_smile:

The vector from the planet center to the player

will give the location for the camera, once extended a bit

See, correct location, but not looking down on player

Then, to look down on the player I take the reverse of the vector from the planet center, but prioritize the Y direction of the player ( can’t use X, because that’s already taken from the planet )

( it works )

1 Like

Amazing! Thanks, I will try it first thing tomorrow. You are a hero!

1 Like