Merge commit 'refs/merge-requests/1579' of git://gitorious.org/fg/flightgear into yasimfixes
This commit is contained in:
commit
ec2baa1a41
1 changed files with 2 additions and 1 deletions
|
@ -547,9 +547,10 @@ float Airplane::compileFuselage(Fuselage* f)
|
||||||
Surface* s = new Surface();
|
Surface* s = new Surface();
|
||||||
s->setPosition(pos);
|
s->setPosition(pos);
|
||||||
float sideDrag = len/wid;
|
float sideDrag = len/wid;
|
||||||
|
s->setXDrag(f->_cx);
|
||||||
s->setYDrag(sideDrag*f->_cy);
|
s->setYDrag(sideDrag*f->_cy);
|
||||||
s->setZDrag(sideDrag*f->_cz);
|
s->setZDrag(sideDrag*f->_cz);
|
||||||
s->setTotalDrag(scale*segWgt*f->_cx);
|
s->setTotalDrag(scale*segWgt);
|
||||||
s->setInducedDrag(f->_idrag);
|
s->setInducedDrag(f->_idrag);
|
||||||
|
|
||||||
// FIXME: fails for fuselages aligned along the Y axis
|
// FIXME: fails for fuselages aligned along the Y axis
|
||||||
|
|
Loading…
Add table
Reference in a new issue