using namespace simgear;
-FGAIBase::FGAIBase(object_type ot) :
+FGAIBase::FGAIBase(object_type ot, bool enableHot) :
_max_speed(300),
_name(""),
_parent(""),
props( NULL ),
model_removed( fgGetNode("/ai/models/model-removed", true) ),
manager( NULL ),
- fp( NULL ),
_installed(false),
+ fp( NULL ),
_impact_lat(0),
_impact_lon(0),
_impact_elev(0),
p = 1e5;
a = 340;
Mach = 0;
+
+ // explicitly disable HOT for (most) AI models
+ if (!enableHot)
+ aip.getSceneGraph()->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
}
FGAIBase::~FGAIBase() {
}
double FGAIBase::_getVS_fps() const {
- return vs*60.0;
+ return vs/60.0;
}
double FGAIBase::_get_speed_east_fps() const {
}
void FGAIBase::_setVS_fps( double _vs ) {
- vs = _vs/60.0;
+ vs = _vs*60.0;
}
double FGAIBase::_getAltitude() const {