From aa16a1e12ab30898f46f9a6e4142db7182376b27 Mon Sep 17 00:00:00 2001 From: "Cutis L. Olson" Date: Fri, 23 Jul 2010 12:37:17 -0500 Subject: [PATCH] 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. --- src/Environment/environment_mgr.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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