<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to get the camera coordinates ?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1756&amp;type=atom" />
	<updated>2021-04-17T15:43:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1756</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get the camera coordinates ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7390#p7390" />
			<content type="html"><![CDATA[<p>Thanks for these explanations !<br />Phil</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2021-04-17T15:43:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7390#p7390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get the camera coordinates ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7389#p7389" />
			<content type="html"><![CDATA[<p>Vector2 is a structure that contains the x and y fields.<br /><a href="https://docs.unity3d.com/ScriptReference/Vector2.html">https://docs.unity3d.com/ScriptReference/Vector2.html</a><br />These fields are of the float data type (32bit, ~6-9 digits).<br /><a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types">https://docs.microsoft.com/en-us/dotnet … eric-types</a><br />Vector2.ToString() displays only one number after the decimal point, while this in reality has a lot more precision.<br />It&#039;s very easy to check this: display the value of the field x or y.<br />And I cannot change the display of Unity datatype in the third party asset.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-16T23:51:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7389#p7389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get the camera coordinates ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7388#p7388" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>To get the coordinates of the center of the map use Online Maps / Get Map Coordinates And Zoom.<br />To get the coordinates of any GameObject on the map, use Online Maps / Get Coordinates By World Position.</p></blockquote></div><p>This is of course what I tried first ! But I understand why :&nbsp; there is only 1 decimal in the coordinates displayed in the FSM variable, so as my terrain is not very large, I didn&#039;t see any change in the value when dragging the terrain !</p><p><span class="postimg"><img src="http://zmz.fr/ph/images/CamCoord.png" alt="PunBB bbcode test" /></span></p><p>Maybe you should add some decimals in the field to avoid this risk of question... I spent a lot of time on this issue...</p><p>Thanks<br />Phil</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2021-04-16T20:09:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7388#p7388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get the camera coordinates ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7387#p7387" />
			<content type="html"><![CDATA[<p>Hello.</p><p>To get the coordinates of the center of the map use Online Maps / Get Map Coordinates And Zoom.<br />To get the coordinates of any GameObject on the map, use Online Maps / Get Coordinates By World Position.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-16T19:00:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7387#p7387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get the camera coordinates ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7386#p7386" />
			<content type="html"><![CDATA[<p>Hello, maybe a stupid question, but there is something pretty simple that I don&#039;t understand.</p><p>If the camera doesn&#039;t move (its worldposition is 0,0) its coordinates do change when the player is moving on the map (or more precisely the map is moving below the player).</p><p>So how do I get the lat/lng of the center of the map, or of an object (not a marker) on the map (in this case the Cam object).<br />I don&#039;t see any PM action to get this vector2 ?</p><p>Best regards, Phil</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2021-04-16T17:58:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7386#p7386</id>
		</entry>
</feed>
