1
0
Fork 0

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.
This commit is contained in:
Colin Douglas Howell 2014-04-04 23:05:23 -07:00 committed by Torsten Dreyer
parent 5002814554
commit ef2898f25c

View file

@ -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);