How to get camera rotation so that it is always facing the center relatively instead of globally

Horizontal movement with this code is fine, but Vertical movement across the north/south pole inverts the pitch and rotates the yaw 180 degrees.

1 Like