Maik JUSTUS: export ground material friction factor to property
This commit is contained in:
parent
9d98966685
commit
6094d927d3
2 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,7 @@ public:
|
||||||
float getRollSpeed() { return _rollSpeed; }
|
float getRollSpeed() { return _rollSpeed; }
|
||||||
float getBumpAltitude();
|
float getBumpAltitude();
|
||||||
bool getGroundIsSolid();
|
bool getGroundIsSolid();
|
||||||
|
float getGroundFrictionFactor() { return (float)_ground_frictionFactor; }
|
||||||
|
|
||||||
// Takes a velocity of the aircraft relative to ground, a rotation
|
// Takes a velocity of the aircraft relative to ground, a rotation
|
||||||
// vector, and a ground plane (all specified in local coordinates)
|
// vector, and a ground plane (all specified in local coordinates)
|
||||||
|
|
|
@ -478,6 +478,7 @@ void YASim::copyFromYASim()
|
||||||
node->setFloatValue("caster-angle-deg", g->getCasterAngle() * RAD2DEG);
|
node->setFloatValue("caster-angle-deg", g->getCasterAngle() * RAD2DEG);
|
||||||
node->setFloatValue("rollspeed-ms", g->getRollSpeed());
|
node->setFloatValue("rollspeed-ms", g->getRollSpeed());
|
||||||
node->setBoolValue("ground-is-solid", g->getGroundIsSolid()!=0);
|
node->setBoolValue("ground-is-solid", g->getGroundIsSolid()!=0);
|
||||||
|
node->setFloatValue("ground-friction-factor", g->getGroundFrictionFactor());
|
||||||
}
|
}
|
||||||
|
|
||||||
Hook* h = airplane->getHook();
|
Hook* h = airplane->getHook();
|
||||||
|
|
Loading…
Reference in a new issue