<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_getWindBearingAndVel</id>
		<title>MIST getWindBearingAndVel - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_getWindBearingAndVel"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getWindBearingAndVel&amp;action=history"/>
		<updated>2026-06-10T00:17:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_getWindBearingAndVel&amp;diff=13938&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.utils.getWindBearingAndVel|  |vNum = Mist 4.5  |desc= Returns the bearing and velocity of the wind at a given point. The bearing is the direc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getWindBearingAndVel&amp;diff=13938&amp;oldid=prev"/>
				<updated>2022-02-11T21:15:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.utils.getWindBearingAndVel|  |vNum = Mist 4.5  |desc= Returns the bearing and velocity of the wind at a given point. The bearing is the direc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.utils.getWindBearingAndVel|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Returns the bearing and velocity of the wind at a given point. The bearing is the direction the wind is blowing toward. If the point passed is below ground level the function automatically adjusts the point to be 10 meters above ground level. &lt;br /&gt;
&lt;br /&gt;
Bearing is returned in radians&lt;br /&gt;
&lt;br /&gt;
Velocity is returned in meters per second&lt;br /&gt;
&lt;br /&gt;
|rtnType= number, number&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= point&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
|optName1= &lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= Any vec or vec3 value is accepted for point. &lt;br /&gt;
&lt;br /&gt;
|rtnExamples= &lt;br /&gt;
&lt;br /&gt;
|example= The following creates a value &amp;quot;WP2&amp;quot; 50km away from the current location of the unit CV into the wind. &lt;br /&gt;
&lt;br /&gt;
    local cv = Unit.getByName('USSRanger'):getPoint()&lt;br /&gt;
    local heading, vel = getWindBearingAndVel(cv)&lt;br /&gt;
    heading = heading - math.pi + 0.15708 -- inverse the direction and add 9 degrees to get angle of landing area&lt;br /&gt;
    local WP2 = mist.projectPoint(cv, 50000, heading)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|notes=  &lt;br /&gt;
&lt;br /&gt;
|funcs= {{ListOfMistGeneralPurposeFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|getWindBearingAndVel]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>