]> git.mxchange.org Git - flightgear.git/commitdiff
Call the new particle wind setting function with wind direction and speed.
authorCutis L. Olson <curt@stinson.flightgear.org>
Fri, 23 Jul 2010 17:37:17 +0000 (12:37 -0500)
committerCutis L. Olson <curt@stinson.flightgear.org>
Fri, 23 Jul 2010 17:37:17 +0000 (12:37 -0500)
The particle wind setting method then takes care of whatever logic and
transformations are requred to convert to the proper OSG coordinate system.

src/Environment/environment_mgr.cxx

index 15268f93e02d02e84c2c7d84848242dc34117d56..fa23149ec54b0c7b2dfd6ddde3e7ec4f53326e35 100644 (file)
@@ -295,7 +295,9 @@ FGEnvironmentMgr::update (double dt)
   osg::Vec3 windVec(-_environment->get_wind_from_north_fps(),
                     -_environment->get_wind_from_east_fps(),
                     _environment->get_wind_from_down_fps());
-  simgear::Particles::setWindVector(windVec * SG_FEET_TO_METER);
+  // simgear::Particles::setWindVector(windVec * SG_FEET_TO_METER);
+  simgear::Particles::setWindFrom( _environment->get_wind_from_heading_deg(),
+                                  _environment->get_wind_speed_kt() );
 }
 
 FGEnvironment