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:
parent
9604908a8d
commit
aa16a1e12a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue