1
0
Fork 0

Merge commit 'refs/merge-requests/1579' of git://gitorious.org/fg/flightgear into yasimfixes

This commit is contained in:
Torsten Dreyer 2014-04-04 08:57:16 +02:00
commit ec2baa1a41

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