<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Face 3D marker toward another coord]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=774&amp;type=atom" />
	<updated>2018-02-09T13:09:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=774</id>
		<entry>
			<title type="html"><![CDATA[Re: Face 3D marker toward another coord]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3352#p3352" />
			<content type="html"><![CDATA[<p>Just wrap your marker into a new GameObject, rotate your marker 180 degrees, create a new prefab from the external GameObject, and use it for the markers.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-09T13:09:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3352#p3352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Face 3D marker toward another coord]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3351#p3351" />
			<content type="html"><![CDATA[<p>that&#039;s definately easier. I&#039;m now trying:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onlinemapMarker3DInstance.marker.LookToCoordinates(new Vector2((float)longitudeB, (float)latitudeB));</p><p>Now...the marker always faces away from coord B. (The marker prefab has Z forward).</p>]]></content>
			<author>
				<name><![CDATA[braden]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=499</uri>
			</author>
			<updated>2018-02-09T12:36:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3351#p3351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Face 3D marker toward another coord]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3348#p3348" />
			<content type="html"><![CDATA[<p>Hello.</p><p>The simplest way is OnlineMapsMarkerBase.LookToCoordinates.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#a92d31913c11e266cb2501ea569db3a77">http://infinity-code.com/doxygen/online … a569db3a77</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-09T11:50:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3348#p3348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Face 3D marker toward another coord]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3345#p3345" />
			<content type="html"><![CDATA[<p>Hi,</p><p>If the 3d marker is at coord A, and i want it to face something at coord B...what&#039;s the best way to do that?</p><p>I&#039;ve tried rotating the marker on Y axis by using the Angle2D utility from OnlineMaps:</p><p>onlinemapMarker3DInstance.transform.rotation = Quaternion.Euler(0, (float)OnlineMapsUtils.Angle2D(longitudeA,latitudeA,longitudeB,latitudeB), 0);</p><p>And it never seems to face the right way. I tried reversing the A and B coord parameters in Angle2D also.</p>]]></content>
			<author>
				<name><![CDATA[braden]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=499</uri>
			</author>
			<updated>2018-02-09T05:18:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3345#p3345</id>
		</entry>
</feed>
