From: Colin Douglas Howell Date: Sat, 5 Apr 2014 06:05:23 +0000 (-0700) Subject: Corrected fix for issue 1423 (YASim miscomputes incidence rotation of force vector) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef2898f25ce04ce6440c8f4723e92cacd8a6dd14;p=flightgear.git Corrected fix for issue 1423 (YASim miscomputes incidence rotation of force vector) I got the sign wrong in my previous fix, causing the vector to be rotated the wrong way. See my latest comments in issue 1423. Sorry about that. --- diff --git a/src/FDM/YASim/Surface.cpp b/src/FDM/YASim/Surface.cpp index 2baa42baa..25d8da489 100644 --- a/src/FDM/YASim/Surface.cpp +++ b/src/FDM/YASim/Surface.cpp @@ -228,7 +228,7 @@ void Surface::calcForce(float* v, float rho, float* out, float* torque) // coordinates. Since out[] is now the force vector and is // roughly parallel with Z, the small-angle approximation // must change its X component. - out[0] -= incidence * out[2]; + out[0] += incidence * out[2]; // Convert back to external coordinates Math::tmul33(_orient, out, out);