+ if(type.get_body_object())
+ type.get_body_object()->render(tag);
+
+ const vector<VehicleType::Bogie> &bogies = vehicle.get_type().get_bogies();
+ for(unsigned i=0; i<bogies.size(); ++i)
+ {
+ GL::PushMatrix push_mat2;
+ GL::translate(bogies[i].position, 0, 0);
+ float angle = vehicle.get_bogie_direction(i)*180/M_PI;
+ if(bogies[i].rotate_object)
+ angle += 180;
+ GL::rotate(angle, 0, 0, 1);
+ if(type.get_bogie_object(i))
+ type.get_bogie_object(i)->render(tag);
+ }