1
0
Fork 0

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.
This commit is contained in:
Cutis L. Olson 2010-07-23 12:37:17 -05:00
parent 9604908a8d
commit aa16a1e12a

View 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