1
0
Fork 0

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.
This commit is contained in:
Colin Douglas Howell 2014-03-27 02:12:11 -07:00
parent ca3cc03fac
commit 8cca0adc58

View file

@ -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