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:
parent
5002814554
commit
ef2898f25c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue