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:
parent
ca3cc03fac
commit
8cca0adc58
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue