<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Route Line Suggestion]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=743&amp;type=atom" />
	<updated>2018-01-10T18:35:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=743</id>
		<entry>
			<title type="html"><![CDATA[Re: Route Line Suggestion]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3211#p3211" />
			<content type="html"><![CDATA[<p>Hello.</p><p>1. Use the Google Roads API to verify that the user is on the route.<br />Or, simply calculate the distance from the user&#039;s location to the nearest point on the active route segment (OnlineMapsUtils.NearestPointStrict, OnlineMapsUtils.DistanceBetweenPoints). If the distance is greater than a certain value (for example, 50 meters), the user has left the route.</p><p>2. Create a new user marker and Lerp coordinates from the marker location to the user&#039;s location.<br /><a href="http://infinity-code.com/atlas/online-maps/pages/Marker_GPS_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a><br /><a href="https://docs.unity3d.com/ScriptReference/Mathf.Lerp.html">https://docs.unity3d.com/ScriptReferenc … .Lerp.html</a><br /><a href="https://docs.unity3d.com/ScriptReference/Mathf.SmoothDamp.html">https://docs.unity3d.com/ScriptReferenc … hDamp.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-01-10T18:35:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3211#p3211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Route Line Suggestion]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3209#p3209" />
			<content type="html"><![CDATA[<p>Hello <br />Thanks for this Asset.<br />I have 2 question kindly help me.</p><p>1:- I was draw a route line like in your example automatic marker move at route line but i want to know how i can check user follow the rout line or not? if user not follow the route line then i will suggest other route which place user exist.How i can do.</p><p>2:- user marker not update smoothly if i was comment the automatic move code in update method.How i can smoothly move if user move in real world?</p><p>Please help me?</p>]]></content>
			<author>
				<name><![CDATA[omer.jolta.ios]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=625</uri>
			</author>
			<updated>2018-01-10T08:50:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3209#p3209</id>
		</entry>
</feed>
