Fix dumb typo. Very embarassing, but oddly not fatal...
This commit is contained in:
parent
4a854fcc3e
commit
7a9e2aba71
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ void Model::calcForces(State* s)
|
|||
// Account for ground effect by multiplying the vertical force
|
||||
// component by an amount linear with the fraction of the wingspan
|
||||
// above the ground.
|
||||
float dist = ground[4] - Math::dot3(ground, _wingCenter);
|
||||
float dist = ground[3] - Math::dot3(ground, _wingCenter);
|
||||
if(dist > 0 && dist < _groundEffectSpan) {
|
||||
float fz = Math::dot3(faero, ground);
|
||||
Math::mul3(fz * _groundEffect * dist/_groundEffectSpan,
|
||||
|
|
Loading…
Add table
Reference in a new issue