]> git.mxchange.org Git - flightgear.git/commitdiff
Put the sqrt(frac) terms back into the wing twist.
authorandy <andy>
Mon, 9 Feb 2004 19:53:14 +0000 (19:53 +0000)
committerandy <andy>
Mon, 9 Feb 2004 19:53:14 +0000 (19:53 +0000)
src/FDM/YASim/Wing.cpp

index 8816cfa994617f83e1c2ac5da556c6cedb19524b..f0a7a616fcf0c448927cbce4d69394f21ed17ddc 100644 (file)
@@ -349,7 +349,7 @@ void Wing::compile()
             sr->surface = s;
             sr->weight = chord * segWid;
             s->setTotalDrag(sr->weight);
-            s->setTwist(_twist * frac);
+            s->setTwist(_twist * Math::sqrt(frac));
             _surfs.add(sr);
 
             if(_mirror) {
@@ -360,7 +360,7 @@ void Wing::compile()
                 sr->surface = s;
                 sr->weight = chord * segWid;
                 s->setTotalDrag(sr->weight);
-                s->setTwist(_twist * frac);
+                s->setTwist(_twist * Math::sqrt(frac));
                 _surfs.add(sr);
             }
         }