Topic: Face 3D marker toward another coord
Hi,
If the 3d marker is at coord A, and i want it to face something at coord B...what's the best way to do that?
I've tried rotating the marker on Y axis by using the Angle2D utility from OnlineMaps:
onlinemapMarker3DInstance.transform.rotation = Quaternion.Euler(0, (float)OnlineMapsUtils.Angle2D(longitudeA,latitudeA,longitudeB,latitudeB), 0);
And it never seems to face the right way. I tried reversing the A and B coord parameters in Angle2D also.