]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Gear.hpp
YASim airborne start-up
[flightgear.git] / src / FDM / YASim / Gear.hpp
index ad08b6ea94b9c02762587f735110f94ab6533df9..8d8cb35442002b4e6a275e8173a12bf81beff022 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef _GEAR_HPP
 #define _GEAR_HPP
 
-class SGMaterial;
+namespace simgear {
+class BVHMaterial;
+}
 
 namespace yasim {
 
@@ -50,7 +52,7 @@ public:
     void setIgnoreWhileSolving(bool c);
     void setGlobalGround(double* global_ground, float* global_vel,
         double globalX, double globalY,
-        int type, const SGMaterial *material);
+                         const simgear::BVHMaterial *material);
     void getPosition(float* out);
     void getCompression(float* out);
     void getGlobalGround(double* global_ground);
@@ -67,6 +69,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)
@@ -116,7 +119,6 @@ private:
     float _reduceFrictionByExtension;
     bool _ignoreWhileSolving;
 
-    int _ground_type;
     double _ground_frictionFactor;
     double _ground_rollingFriction;
     double _ground_loadCapacity;