From: ehofman Date: Tue, 3 Nov 2009 12:58:35 +0000 (+0000) Subject: I really have no idea why but the velocity should be 100 times larger than feet-per... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8430ce1040db155b231c45b6a6174203b3d7956;p=flightgear.git I really have no idea why but the velocity should be 100 times larger than feet-per-second suggests to work properly. oh and change sign --- diff --git a/src/Model/acmodel.cxx b/src/Model/acmodel.cxx index 187e27042..4df8f19f1 100644 --- a/src/Model/acmodel.cxx +++ b/src/Model/acmodel.cxx @@ -137,7 +137,7 @@ FGAircraftModel::update (double dt) _speed_d->getFloatValue() ); if ( vel[0] || vel[1] || vel[2] ) { SGQuatd hlOr = SGQuatd::fromLonLat(position); - _velocity = toVec3f( hlOr.backTransform( vel * SG_FEET_TO_METER ) ); + _velocity = 100.0 * toVec3f( hlOr.rotateBack( vel * SG_FEET_TO_METER ) ); } else _velocity = SGVec3f::zeros();