-Track3D *Engineer::pick_track(int x, int y)
-{
- float view_height = tan(camera.get_field_of_view()/2)*2;
- float xx = ((float(x)-window.get_width()/2)/window.get_height())*view_height;
- float yy = (float(y)/window.get_height()-0.5)*view_height;
- float size = 4.0/window.get_height()*view_height;
-
- camera.apply();
-
- return layout_3d.pick_track(xx, yy, size);
-}
-
-void Engineer::train_added(Train &train)