From: Colin Douglas Howell Date: Thu, 27 Mar 2014 09:12:11 +0000 (-0700) Subject: Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8cca0adc5893f5836de087de072f95d635ce22dd;p=flightgear.git Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes) Correct Airplane::compileFuselage() so that a Fuselage's "cx" only affects drag on the X axis. --- diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index 15fd4d683..72d2b7b29 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -547,9 +547,10 @@ float Airplane::compileFuselage(Fuselage* f) Surface* s = new Surface(); s->setPosition(pos); float sideDrag = len/wid; + s->setXDrag(f->_cx); s->setYDrag(sideDrag*f->_cy); s->setZDrag(sideDrag*f->_cz); - s->setTotalDrag(scale*segWgt*f->_cx); + s->setTotalDrag(scale*segWgt); s->setInducedDrag(f->_idrag); // FIXME: fails for fuselages aligned along the Y axis