<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Translate GPS Position into transformPosition]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=240&amp;type=atom" />
	<updated>2016-08-09T22:06:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=240</id>
		<entry>
			<title type="html"><![CDATA[Re: Translate GPS Position into transformPosition]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1077#p1077" />
			<content type="html"><![CDATA[<p>Awesome, got it working. </p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[DaGround]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=199</uri>
			</author>
			<updated>2016-08-09T22:06:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1077#p1077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Translate GPS Position into transformPosition]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1074#p1074" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Use OnlineMapsTileSetControl.GetWorldPosition:<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#a6ddaccd56021f45bcefaeeea663abc1f">http://infinity-code.com/doxygen/online … ea663abc1f</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-09T18:52:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1074#p1074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Translate GPS Position into transformPosition]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1071#p1071" />
			<content type="html"><![CDATA[<p>Hi,</p><p>i am trying to rotate the camera into the direction the map is moving.</p><p>When i get a new GPS ping, i&#039;m lerping the map towards that point:<br />OnlineMaps.instance.position = Vector2.Lerp(fromPosition, toPosition, angle);</p><p>this works fine.</p><p>Now i want to move a GameObject on the corrsponding position in unity worldspace:</p><p>&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; this.unityPosition = OnlineMapsControlBase.instance.GetPosition(toPosition);<br />&nbsp; &nbsp; &nbsp; &nbsp; target.position = new Vector3(this.unityPosition.x, 0 , this.unityPosition.y);<br />&nbsp; &nbsp; &nbsp; &nbsp; gameObject.transform.LookAt(target);</p><p>This really doesnt work properly <img src="https://forum.infinity-code.com/img/smilies/sad.png" width="15" height="15" alt="sad" />&nbsp; any clues how i could properly achieve this?</p><p>Thanks! <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[DaGround]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=199</uri>
			</author>
			<updated>2016-08-09T17:11:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1071#p1071</id>
		</entry>
</feed>
