1
0
Fork 0

Fix dumb typo. Very embarassing, but oddly not fatal...

This commit is contained in:
andy 2002-05-01 01:17:33 +00:00
parent 4a854fcc3e
commit 7a9e2aba71

View file

@ -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,