From: david Date: Sun, 13 Jul 2003 20:18:51 +0000 (+0000) Subject: It's a direction, not an axis. The z direction is the one that should X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d318461b9652d1403166440b6454e7b0fd98ede;p=flightgear.git It's a direction, not an axis. The z direction is the one that should occur full force for turbulence. --- diff --git a/src/FDM/JSBSim/FGAtmosphere.cpp b/src/FDM/JSBSim/FGAtmosphere.cpp index 717e3a4db..b8098da0b 100644 --- a/src/FDM/JSBSim/FGAtmosphere.cpp +++ b/src/FDM/JSBSim/FGAtmosphere.cpp @@ -277,8 +277,8 @@ void FGAtmosphere::Turbulence(void) Magnitude += MagnitudeAccel*rate*State->Getdt(); vDirectiondAccelDt.Normalize(); + vDirectiondAccelDt(eX) *= vDirectiondAccelDt(eX); vDirectiondAccelDt(eY) *= vDirectiondAccelDt(eY); - vDirectiondAccelDt(eZ) *= vDirectiondAccelDt(eZ); vDirectionAccel += vDirectiondAccelDt*rate*TurbRate*State->Getdt(); vDirectionAccel.Normalize(); vDirection += vDirectionAccel*rate*State->Getdt();