fgGetNode("/fdm/jsbsim/sim-time-sec", true)->alias( node );
// end of sim-time-sec deprecation patch
+ terrain = fgGetNode("/sim/fdm/surface", true);
+
fdmex->Setdt( dt );
result = fdmex->LoadModel( aircraft_path.str(),
SGQuatd hlToEc = SGQuatd::fromLonLat(geodPt);
*agl = dot(hlToEc.rotate(SGVec3d(0, 0, 1)), SGVec3d(contact) - SGVec3d(pt));
- static SGPropertyNode_ptr terrain = fgGetNode("/sim/fdm/surface", true);
-
#ifdef JSBSIM_USE_GROUNDREACTIONS
bool terrain_active = (terrain->getIntValue("override-level", -1) > 0) ? false : true;
terrain->setBoolValue("active", terrain_active);