1
0
Fork 0

Maik JUSTUS: export ground material friction factor to property

This commit is contained in:
mfranz 2007-01-18 21:46:28 +00:00
parent 9d98966685
commit 6094d927d3
2 changed files with 2 additions and 0 deletions

View 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)

View 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();