X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2Fgroundcache.hxx;h=9319666a6ba83508f9f1c364ab8d9e624ba740ed;hb=7041ed907891f7be0205cafe13b218f9f2767efa;hp=145561a9c571589b47f1075e8d7be5735de6de2b;hpb=c254bb9c38045f1e5d46e336099efcf949a653ee;p=flightgear.git diff --git a/src/FDM/groundcache.hxx b/src/FDM/groundcache.hxx index 145561a9c..9319666a6 100644 --- a/src/FDM/groundcache.hxx +++ b/src/FDM/groundcache.hxx @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include // #define GROUNDCACHE_DEBUG @@ -37,9 +37,9 @@ #include #endif -class SGMaterial; namespace simgear { class BVHLineGeometry; +class BVHMaterial; } class FGGroundCache { @@ -89,11 +89,13 @@ public: // 0 and 1 which can be used to model lower friction with wet runways. bool get_agl(double t, const SGVec3d& pt, SGVec3d& contact, SGVec3d& normal, SGVec3d& linearVel, SGVec3d& angularVel, - simgear::BVHNode::Id& id, const SGMaterial*& material); + simgear::BVHNode::Id& id, + const simgear::BVHMaterial*& material); bool get_nearest(double t, const SGVec3d& pt, double maxDist, SGVec3d& contact, SGVec3d& linearVel, SGVec3d& angularVel, - simgear::BVHNode::Id& id, const SGMaterial*& material); + simgear::BVHNode::Id& id, + const simgear::BVHMaterial*& material); // Return 1 if the hook intersects with a wire. // That test is done by checking if the quad spanned by the points pt* @@ -120,7 +122,7 @@ private: // In case the aircraft is too high above ground. double _altitude; // the simgear material reference, contains friction coeficients ... - const SGMaterial* _material; + const simgear::BVHMaterial* _material; // The time reference for later call to intersection test routines. // Is required since we will have moving triangles in carriers. double cache_ref_time;