]> git.mxchange.org Git - flightgear.git/commitdiff
Experimental bugfix for particle wind
authorVivian Meazza <vivian.meazza@lineone.net>
Wed, 28 Jul 2010 21:22:04 +0000 (22:22 +0100)
committerVivian Meazza <vivian.meazza@lineone.net>
Wed, 28 Jul 2010 21:22:04 +0000 (22:22 +0100)
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
src/Environment/environment_mgr.cxx

index 15268f93e02d02e84c2c7d84848242dc34117d56..07e834772b165770283cca25e73bff601ce2124f 100644 (file)
@@ -292,10 +292,20 @@ FGEnvironmentMgr::update (double dt)
   
   _environment->set_elevation_ft(fgGetDouble("/position/altitude-ft"));
   _environment->set_local_weather_lift_fps(fgGetDouble("/local-weather/current/thermal-lift"));
-  osg::Vec3 windVec(-_environment->get_wind_from_north_fps(),
-                    -_environment->get_wind_from_east_fps(),
-                    _environment->get_wind_from_down_fps());
+  osg::Vec3 windVec(_environment->get_wind_from_north_fps(),
+                                       -_environment->get_wind_from_east_fps(),
+                    0);
+         // SG_LOG(SG_GENERAL, SG_ALERT, "-_environment->get_wind_from_north_mps() " <<
+                  //_environment->get_wind_from_north_fps() * SG_FEET_TO_METER
+                  //<< " -_environment->get_wind_from_east_mps() " 
+                  //<< -_environment->get_wind_from_east_fps() * SG_FEET_TO_METER
+                  //);
+
   simgear::Particles::setWindVector(windVec * SG_FEET_TO_METER);
+  //double wind_true_deg = _environment->get_wind_from_heading_deg();
+  //simgear::Particles::setWindFrom( wind_true_deg,
+  //                                _environment->get_wind_speed_kt() );
+
 }
 
 FGEnvironment