<?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 — Detecting proximity to body of water]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1010</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1010&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Detecting proximity to body of water.]]></description>
		<lastBuildDate>Thu, 10 Jan 2019 14:48:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Detecting proximity to body of water]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4485#p4485</link>
			<description><![CDATA[<p>This sounds great! I&#039;m going to show this to my team, I think this is exactly what we wanted to hear. Not only is it possible, but there are also multiple ways to go about. This looks like the logical decision to start with. I will let you know when we purchase it.</p><p>Thanks again.</p>]]></description>
			<author><![CDATA[null@example.com (Learning2Swim)]]></author>
			<pubDate>Thu, 10 Jan 2019 14:48:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4485#p4485</guid>
		</item>
		<item>
			<title><![CDATA[Re: Detecting proximity to body of water]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4484#p4484</link>
			<description><![CDATA[<p>Hello.</p><p>This can be done in many ways, for example:<br />1. (If you need to know the distance to the water) You make a request to OSM Overpass API and get the water data, check that player is not in water, and calculate the distance from the player’s location to the nearest segment of water.<br />2. (If you need to know the distance to the water) You download vector tiles from OSM or Mapbox, load it and calculate the distance from the player’s location to the nearest segment of water.<br />3. (If you only need to check that in the location the water is present) Just check the texture color in the location. <br />Sometimes it is convenient to use stylized tiles from Mapbox or Google Maps to do this.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 10 Jan 2019 14:31:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4484#p4484</guid>
		</item>
		<item>
			<title><![CDATA[Detecting proximity to body of water]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4483#p4483</link>
			<description><![CDATA[<p>This asset looks great, and I&#039;m on the verge of purchasing.<br />Before I purchase this asset though, I want to know:</p><p>1) Is it possible to detect how close you are to a body of water?</p><p>2) If yes, how is this information relayed? Is it by meters or feet away? Or is it only if you are right on top of the water?</p><p>I want to make something similar to PokemonGO where the game seems to know when you are within 100 yards of water, but I don&#039;t know if that is logic Niantic implemented by going over every body of water in the world and labeling it, or if a GPS asset like this one would make handling water proximity easier.</p><p>Thanks in advance!</p>]]></description>
			<author><![CDATA[null@example.com (Learning2Swim)]]></author>
			<pubDate>Thu, 10 Jan 2019 14:16:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4483#p4483</guid>
		</item>
	</channel>
</rss>
