<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Find Markers within Range]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=119</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=119&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Find Markers within Range.]]></description>
		<lastBuildDate>Mon, 28 Mar 2016 19:16:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Find Markers within Range]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=516#p516</link>
			<description><![CDATA[<p>Awesome, thanks!</p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Mon, 28 Mar 2016 19:16:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=516#p516</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find Markers within Range]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=515#p515</link>
			<description><![CDATA[<p>Hello.</p><p>It is also a good way. Much better than Physics.OverlapSphere.<br />I think this is the fastest way (your link).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 28 Mar 2016 18:54:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=515#p515</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find Markers within Range]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=514#p514</link>
			<description><![CDATA[<p>Thanks! Does that remain true if there are a large number of markers on the map?</p><p>Also, in looking into the efficiency of calculating distance issue, I found this article and wondered how it compared with what you have in the DistanceBetweenPoints code.</p><p><a href="http://docs.unity3d.com/Manual/DirectionDistanceFromOneObjectToAnother.html">http://docs.unity3d.com/Manual/Directio … other.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Mon, 28 Mar 2016 18:32:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=514#p514</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find Markers within Range]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=513#p513</link>
			<description><![CDATA[<p>Hello.</p><p>This is one of the possible solutions.</p><p>But there is another way:<br />1. Сonvert Unity World Position into coordinates.<br />2. Calculate the distance to each marker (OnlineMapsUtils.DistanceBetweenPoints). If the distance is less than some value, this marker in the range.</p><br /><p>This way will work much faster than Physics.OverlapSphere.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 26 Mar 2016 20:12:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=513#p513</guid>
		</item>
		<item>
			<title><![CDATA[Find Markers within Range]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=512#p512</link>
			<description><![CDATA[<p>I want the most efficient way of returning a list of markers within a given range of a specified point. I know I could just go through the entire collection of markers and compute the distance, but thought there might be something more along the lines of the code below:</p><div class="codebox"><pre><code>            Collider[] hitColliders = Physics.OverlapSphere(position, range);
            HashSet&lt;int&gt; nearbyObjectIds = new HashSet&lt;int&gt;();
            List&lt;WorldObject&gt; nearbyObjects = new List&lt;WorldObject&gt;();
            for (int i = 0; i &lt; hitColliders.Length; i++)</code></pre></div><p>Will iterating through all the markers currently on the map be the best way to go about it, or is there some more elegant solution?</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Fri, 25 Mar 2016 19:34:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=512#p512</guid>
		</item>
	</channel>
</rss>
