Merge commit 'refs/merge-requests/1578' of git://gitorious.org/fg/flightgear into yasimfixes
This commit is contained in:
commit
efc5c32633
1 changed files with 4 additions and 2 deletions
|
@ -225,8 +225,10 @@ void Surface::calcForce(float* v, float rho, float* out, float* torque)
|
||||||
Math::add3(lwind, out, out);
|
Math::add3(lwind, out, out);
|
||||||
|
|
||||||
// Reverse the incidence rotation to get back to surface
|
// Reverse the incidence rotation to get back to surface
|
||||||
// coordinates.
|
// coordinates. Since out[] is now the force vector and is
|
||||||
out[2] -= incidence * out[0];
|
// roughly parallel with Z, the small-angle approximation
|
||||||
|
// must change its X component.
|
||||||
|
out[0] -= incidence * out[2];
|
||||||
|
|
||||||
// Convert back to external coordinates
|
// Convert back to external coordinates
|
||||||
Math::tmul33(_orient, out, out);
|
Math::tmul33(_orient, out, out);
|
||||||
|
|
Loading…
Add table
Reference in a new issue