X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScenery%2Fhitlist.hxx;h=f76361653c3c3c16e8899f19237bebc316aa5548;hb=2e4f836a9883f90690c11a7d0dcebd4cb7e46445;hp=0fa5d74651a2074f91f80c56770a8c0e90bdac2d;hpb=59583890262247d73f48f4f1af21303ea41fda47;p=flightgear.git diff --git a/src/Scenery/hitlist.hxx b/src/Scenery/hitlist.hxx index 0fa5d7465..f76361653 100644 --- a/src/Scenery/hitlist.hxx +++ b/src/Scenery/hitlist.hxx @@ -75,22 +75,12 @@ public: }; -inline void FGHitList::Intersect( ssgBranch *scene, - sgdVec3 orig, sgdVec3 dir ) -{ - sgdMat4 m; +// Associated function, assuming a wgs84 world with 0,0,0 at the +// center, find the current terrain intersection elevation for the +// point specified. +bool fgCurrentElev( sgdVec3 abs_view_pos, sgdVec3 scenery_center, + FGHitList *hit_list, + double *terrain_elev, double *radius, double *normal ); - init(); - - if( last_hit() ) { - sgdMakeIdentMat4 ( m ) ; - IntersectCachedLeaf(m, orig, dir); - } - if( ! num_hits() ) { - clear(); - sgdMakeIdentMat4 ( m ) ; - IntersectBranch( scene, m, orig, dir); - } -} #endif // _HITLIST_HXX