<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — conversion between mesh.bounds value and height in meter]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=977&amp;type=atom" />
	<updated>2018-12-04T09:26:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=977</id>
		<entry>
			<title type="html"><![CDATA[Re: conversion between mesh.bounds value and height in meter]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4340#p4340" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Most likely you need OnlineMapsControlBase3D.GetBestElevationYScale.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBase3D.html#a667ff4b8a9053e2ce964e55ed29bda9d.">http://infinity-code.com/doxygen/online … ed29bda9d.</a><br />This method gives you a factor for converting meters to Unity World Points.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-04T09:26:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4340#p4340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[conversion between mesh.bounds value and height in meter]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4336#p4336" />
			<content type="html"><![CDATA[<p>Hi</p><p>I&#039;m trying to find a way to convert a mesh size into meters</p><p><a href="https://gph.is/2AWBzw7">https://gph.is/2AWBzw7</a></p><p>I&#039; creating a mesh based on points that i manually select on the map. I&#039;m able to change this mesh heigh by scaling the vertex.y values.</p><p>By doing so, i&#039;m getting a value with mesh.bounds that is proportional to the mesh height.</p><p>So i&#039;m looking for a way to convert this value into meters.</p><p>That would allow me to set a specific scaleY value for my vertex according to the height i want in meters.</p><p>Are there some methods i missed in the documentation that would helped me ?</p><br /><p>Maybe i have a bad conception of how things should work but i often find myself in the need of having some function that would give me, according to the current zoom level, a ratio value between meters and units. </p><p>Like, at N zoom value, how much meters is 1 units on x,y,or z ? </p><p>I usually end up converting position to lat/long and use OnlineMapsUtils.GetCoordinateInDistance or in the opposit way OnlineMapsUtils.DistanceBetweenPoints but it won&#039;t work for an altitude difference</p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2018-12-03T21:02:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4336#p4336</id>
		</entry>
</feed>
