<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — The problem with OnlineMapsCameraOrbit.rotation]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2087&amp;type=atom" />
	<updated>2023-02-20T21:13:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2087</id>
		<entry>
			<title type="html"><![CDATA[Re: The problem with OnlineMapsCameraOrbit.rotation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8878#p8878" />
			<content type="html"><![CDATA[<p>Hello.</p><p>See OnlineMapsEasyTouchConnector, OnlineMapsFingersTouchGesturesConnector or OnlineMapsTouchScriptConnector scripts to understand how to override the behaviour of OnlineMapsCameraOrbit script.</p><p>How to convert main camera rotation to Camera Orbit rotation:<br /></p><div class="codebox"><pre><code>Vector3 angles = Camera.main.transform.localRotation.eulerAngles;
OnlineMapsCameraOrbit.instance.rotation = new Vector2(90 - angles.x, angles.y - 180);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-02-20T21:13:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8878#p8878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The problem with OnlineMapsCameraOrbit.rotation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8877#p8877" />
			<content type="html"><![CDATA[<p>Hey, I&#039;ve changed mousebutton (1) to (2) in my code to get what I want<br />But if you open the OnlineMapsCameraOrbit script, you won&#039;t be able to use the pan and zoom I wrote myself. I need to use only OnlineMapsCameraOrbit for rotation, pan and zoom which I wrote myself</p>]]></content>
			<author>
				<name><![CDATA[259386905]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1777</uri>
			</author>
			<updated>2023-02-20T11:31:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8877#p8877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The problem with OnlineMapsCameraOrbit.rotation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8876#p8876" />
			<content type="html"><![CDATA[<p>We all know OnlineMapsCameraOrbit.Rotation is to be able to get the camera Angle.<br />But I now need to don&#039;t activate OnlineMapsCameraOrbit, Input MainCamera transform.rotation to get OnlineMapsCameraOrbit.Rotation.</p><p>What will I do?</p><br /><br /><p>（If someone on your team can speak Chinese, you can better understand what I mean.）</p><br /><p>我们都知道 OnlineMapsCameraOrbit.rotation是能获取摄像机的角度。<br />但是，我现在需要不激活 OnlineMapsCameraOrbit，而输入MainCamera的transform.rotation来获取OnlineMapsCameraOrbit.rotation</p>]]></content>
			<author>
				<name><![CDATA[259386905]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1777</uri>
			</author>
			<updated>2023-02-20T08:43:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8876#p8876</id>
		</entry>
</feed>
