Modified Files:
src/ATCDCL/AIEntity.cxx src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.hxx src/ATCDCL/AILocalTraffic.cxx
}
void FGAIEntity::SetModel(osg::Node* model) {
- _model = model;
- _aip.init(_model.get());
+ _aip.init(model);
_aip.setVisible(false);
globals->get_scenery()->get_scene_graph()->addChild(_aip.getSceneGraph());
double _roll; //degrees
double _pitch; //degrees
- char* _model_path; //Path to the 3D model
- osg::ref_ptr<osg::Node> _model; // Pointer to the model
SGModelPlacement _aip;
double _ground_elevation_m;
bool _entering;
bool _turning;
- //ssgBranch* _model;
-
int GetQuadrangleAltitude(int dir, int des_alt);
Point3D GetPatternApproachPos();
#include "AIMgr.hxx"
FGAILocalTraffic::FGAILocalTraffic() {
- /*ssgBranch *model = sgLoad3DModel( globals->get_fg_root(),
- planepath.c_str(),
- globals->get_props(),
- globals->get_sim_time_sec() );
- *//*
- _model = model;
- _aip.init(_model);
- */
- //SetModel(model);
-
ATC = globals->get_ATC_mgr();
// TODO - unhardwire this