<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — coords to world position]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=48&amp;type=atom" />
	<updated>2015-11-03T14:35:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=48</id>
		<entry>
			<title type="html"><![CDATA[Re: coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=187#p187" />
			<content type="html"><![CDATA[<p>Thanks alex.</p><p>Although I still don&#039;t know why, but I think I get the right output. I can figure out myself.</p>]]></content>
			<author>
				<name><![CDATA[roronoazaoxl]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=44</uri>
			</author>
			<updated>2015-11-03T14:35:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=187#p187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=183#p183" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Example attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2015-11-02T15:57:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=183#p183</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=182#p182" />
			<content type="html"><![CDATA[<p>After I read google document and try a example, I think you didnt get what I mean.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; GameObject targetGo = ((OnlineMapsMarker3D)target).instance.gameObject;<br />&nbsp; &nbsp; &nbsp; &nbsp; GameObject playerGo = ((OnlineMapsMarker3D)player).instance.gameObject;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(Vector3.Distance(targetGo.transform.position, playerGo.transform.position));</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; Vector2 markerTile = OnlineMapsUtils.LatLongToTilef(target.position, OnlineMaps.instance.zoom);<br />&nbsp; &nbsp; &nbsp; &nbsp; Vector2 playerTile = OnlineMapsUtils.LatLongToTilef(player.position, OnlineMaps.instance.zoom);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(Vector2.Distance(markerTile, playerTile));</p><p>the output is: 15.20264 and 0.05957031</p><p>lets take ingress as an example:</p><p>I want to draw a circle around player and its radius is 500m in real world so player can attack enemy in this range.<br />How should I project this 500m in the 3D game space? In other world what is the radius of that circle in game space?</p>]]></content>
			<author>
				<name><![CDATA[roronoazaoxl]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=44</uri>
			</author>
			<updated>2015-11-02T14:42:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=182#p182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=180#p180" />
			<content type="html"><![CDATA[<p>Hey, Alex, <br />Thanks for your example.</p><p>Do you mean tile position is the position of maker in 3D world space?</p>]]></content>
			<author>
				<name><![CDATA[roronoazaoxl]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=44</uri>
			</author>
			<updated>2015-11-02T14:19:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=180#p180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=174#p174" />
			<content type="html"><![CDATA[<p>Hello.</p><p>OnlineMapsUtils.DistanceBetweenPoints:<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsUtils.html#ab8588eb7b2eba619d6c3a0bc84a165f2">http://infinity-code.com/doxygen/online … bc84a165f2</a></p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DistanceAndDirectionExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-31T10:33:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=174#p174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[coords to world position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=173#p173" />
			<content type="html"><![CDATA[<p>Hey Alax,</p><p>In my game, I need to detect distance between player marker and other marker. Also I need to draw a circle to around player marker.</p><p>So I either have to translate real world markers distance to 3D world distance,&nbsp; or translate coords to 3D world position to perform calculation. <br />However I cannot find any api to get those done.</p><p>Can you let me know how could I do those?<br />Thanks,</p><p>Alax</p>]]></content>
			<author>
				<name><![CDATA[roronoazaoxl]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=44</uri>
			</author>
			<updated>2015-10-31T08:32:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=173#p173</id>
		</entry>
</feed>
