]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIEntity.cxx
More efficient rotation matrix calc from Norm Vine.
[flightgear.git] / src / ATC / AIEntity.cxx
index 2eb8ba1d662e2adf85d88eb31d56afb970dd0146..f3b06ff9cf904f5cb9b2f9368dcf2baf5b5c31ee 100644 (file)
@@ -46,14 +46,14 @@ void FGAIEntity::Update() {
 void FGAIEntity::Transform() {
 
     // Translate moving object w.r.t eye
-    Point3D sc = scenery.get_center();
+    Point3D sc = globals->get_scenery()->get_center();
     //cout << "sc0 = " << sc.x() << " sc1 = " << sc.y() << " sc2 = " << sc.z() << '\n';
     //cout << "op0 = " << obj_pos.x() << " op1 = " << obj_pos.y() << " op2 = " << obj_pos.z() << '\n';
 
     sgCoord shippos;
     FastWorldCoordinate(&shippos, sc);
     position->setTransform( &shippos );
-    globals->get_scene_graph()->addKid(position);
+    globals->get_scenery()->get_scene_graph()->addKid(position);
     //cout << "Transform called\n";
 }