- SGVec3f vel = SGVec3f( _speed_north->getFloatValue(),
- _speed_east->getFloatValue(),
- _speed_up->getFloatValue());
-// TODO: rotate to properly align with the model orientation
-
- _fx->set_velocity( vel*SG_FEET_TO_METER );
+ // For now assume the aircraft speed is always along the longitudinal
+ // axis, so sideslipping is not taken into account. This should be fine
+ // for audio.
+ _velocity = toVec3f(orient * _speed->getDoubleValue() * SG_KT_TO_FPS);
+ // _velocity[2] = _speed_up->getFloatValue();
+ _velocity *= SG_FEET_TO_METER;
+ _fx->set_velocity( _velocity );