]> git.mxchange.org Git - flightgear.git/commitdiff
Maik JUSTUS: export ground material friction factor to property
authormfranz <mfranz>
Thu, 18 Jan 2007 21:46:28 +0000 (21:46 +0000)
committermfranz <mfranz>
Thu, 18 Jan 2007 21:46:28 +0000 (21:46 +0000)
src/FDM/YASim/Gear.hpp
src/FDM/YASim/YASim.cxx

index ad08b6ea94b9c02762587f735110f94ab6533df9..c3b82cba51b41188b35879bbcd2752b215cae442 100644 (file)
@@ -67,6 +67,7 @@ public:
     float getRollSpeed() { return _rollSpeed; }
     float getBumpAltitude();
     bool getGroundIsSolid();
+    float getGroundFrictionFactor() { return (float)_ground_frictionFactor; }
 
     // Takes a velocity of the aircraft relative to ground, a rotation
     // vector, and a ground plane (all specified in local coordinates)
index 12c499c42c1659619b67c2bd8a9baf6df044d4c1..c77aff9d8fbd70382993c273aa43d09246883c46 100644 (file)
@@ -478,6 +478,7 @@ void YASim::copyFromYASim()
         node->setFloatValue("caster-angle-deg", g->getCasterAngle() * RAD2DEG);
         node->setFloatValue("rollspeed-ms", g->getRollSpeed());
         node->setBoolValue("ground-is-solid", g->getGroundIsSolid()!=0);
+        node->setFloatValue("ground-friction-factor", g->getGroundFrictionFactor());
     }
 
     Hook* h = airplane->getHook();