<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Fly to position]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2182&amp;type=atom" />
	<updated>2023-10-16T11:40:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2182</id>
		<entry>
			<title type="html"><![CDATA[Re: Fly to position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9216#p9216" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Here is an example of how to make a smooth move to a location:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/SmoothMoveExample.html">https://infinity-code.com/atlas/online- … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-10-16T11:40:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9216#p9216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Fly to position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9215#p9215" />
			<content type="html"><![CDATA[<p>Hi,</p><p>if want change the view to some Position it happen instant. </p><p>Have a feature for &quot;Fly to position&quot; with x zoom?</p><p>Currently i use this script from demo:</p><div class="codebox"><pre><code>OnlineMaps.instance.position = r.geometry_location;

Vector2 center;
int zoom;
OnlineMapsUtils.GetCenterPointAndZoom(new[] { r.geometry_bounds_northeast, r.geometry_bounds_southwest }, out center, out zoom);
OnlineMaps.instance.zoom = _locationZoom;</code></pre></div><br /><p>thanks</p>]]></content>
			<author>
				<name><![CDATA[Avaris]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2705</uri>
			</author>
			<updated>2023-10-16T11:35:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9215#p9215</id>
		</entry>
</feed>
