Hello,
I’m trying to calculate location on sphere in cartesian from geographic coordinates. I made blueprint to do this but it doesn’t work.
It is using this formula:
x = R * cos(lat) * cos(lon)
y = R * cos(lon) * sin(lat)
z = R *sin(lat)
My blueprint:
In my scene I’ve created a sphere with country borders texture. In blueprint I set Coords to US geographic coordinates but Debug Point is drawn in wrong place.