-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <msp/gl/meshbuilder.h>
#include <msp/gl/technique.h>
#include <msp/gl/texture2d.h>
{
body_object = get_object(type.get_object());
- const vector<VehicleType::Axle> &axles = type.get_axles();
+ const vector<VehicleType::Axle> &axles = type.get_fixed_axles();
for(vector<VehicleType::Axle>::const_iterator i=axles.begin(); i!=axles.end(); ++i)
axle_objects[0].push_back(get_object(i->object));
delete i->second;
}
-const GL::Object *VehicleType3D::get_axle_object(unsigned i) const
+const GL::Object *VehicleType3D::get_fixed_axle_object(unsigned i) const
{
if(i>=axle_objects[0].size())
throw InvalidParameterValue("Axle index out of range");