From: mfranz Date: Thu, 18 Jan 2007 21:46:28 +0000 (+0000) Subject: Maik JUSTUS: export ground material friction factor to property X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6094d927d3e5da7aaad95d15bd3c3222b1a0584f;p=flightgear.git Maik JUSTUS: export ground material friction factor to property --- diff --git a/src/FDM/YASim/Gear.hpp b/src/FDM/YASim/Gear.hpp index ad08b6ea9..c3b82cba5 100644 --- a/src/FDM/YASim/Gear.hpp +++ b/src/FDM/YASim/Gear.hpp @@ -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) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 12c499c42..c77aff9d8 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -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();