<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — 3d Marker Lost of scale and position in Android with zoom]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1998&amp;type=atom" />
	<updated>2022-07-07T09:47:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1998</id>
		<entry>
			<title type="html"><![CDATA[Re: 3d Marker Lost of scale and position in Android with zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8432#p8432" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This is a script for Online Maps v2, and will only work correctly for integer zoom.<br />Try moving the zoom slider in the editor and you will see that it doesn&#039;t work correctly in the editor too.</p><p>The easiest way around the problem is to create a 3D marker and set the Size Type to Real World or Meters.</p><p>If you still want to scale a GameObject that is not a marker, you can do it this way:<br /></p><div class="codebox"><pre><code>float scale = SOMEVALUE;
float coof = (1 &lt;&lt; (OnlineMaps.MAXZOOM - map.zoom)) * map.zoomCoof;
float s = scale / coof;
gameObject.transform.localScale = new Vector3(s, s, s);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-07-07T09:47:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8432#p8432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[3d Marker Lost of scale and position in Android with zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8431#p8431" />
			<content type="html"><![CDATA[<p>Hello, I have recently purchased your resource to make an information app on a certain territory, however I have encountered a problem that I am not able to solve. Let me explain, I have generated a 3d Marker consisting of a floor plan that overlaps your map, I need to check the accuracy of the overlap for now because I will create mash that trace the paths on which I will have to interact with navmash and my GPS position.<br />The problem: keeping size and position proportionate at each zoom level. with the PC version it works I used a script found on the forum, &quot;MyAwesomeBuilding&quot; and I reset MAXZOOM_DELTA of the OnlineMaps script.</p><p> In the Android version when I zoom with two fingers it gets lost the proportion between 3d marker and your map, alignment,scale&nbsp; is lost. What should I do to make it behave like in the PC version</p><br /><br /><p>thanks a lot I hope we can solve it</p>]]></content>
			<author>
				<name><![CDATA[simon_me]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2114</uri>
			</author>
			<updated>2022-07-06T16:55:03Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8431#p8431</id>
		</entry>
</feed>
