Rotate 3D earth scnnode to specific lat long swift

55 Views Asked by At

I have created a scnnode for earth view with lat long on it. Now i want to rotate earth on specific city lat long and that city lat long should be visible on center of screen to user.

1

There are 1 best solutions below

0
On

Assuming user is facing N0 E0 point, rotate earth node around screen vertical axis by longitude angle then around screen horizontal axis by latitude angle