From: Cutis L. Olson Date: Fri, 23 Jul 2010 17:37:17 +0000 (-0500) Subject: Call the new particle wind setting function with wind direction and speed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa16a1e12ab30898f46f9a6e4142db7182376b27;p=flightgear.git Call the new particle wind setting function with wind direction and speed. The particle wind setting method then takes care of whatever logic and transformations are requred to convert to the proper OSG coordinate system. --- diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index 15268f93e..fa23149ec 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -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