]> git.mxchange.org Git - flightgear.git/commitdiff
I really have no idea why but the velocity should be 100 times larger than feet-per...
authorehofman <ehofman>
Tue, 3 Nov 2009 12:58:35 +0000 (12:58 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 4 Nov 2009 22:14:54 +0000 (23:14 +0100)
src/Model/acmodel.cxx

index 187e27042e356768a256a11a79d9e9a72f6dd84f..4df8f19f1810cab0c4453d0e6e826b77f1542896 100644 (file)
@@ -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();