X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fvehicletype.cpp;h=854308c71ad80cd46861bfa8786021174db40dae;hb=0c1214ad0680c3bf65c1ee5f366dbafabc9d188d;hp=973070ceafc158fe2fddfd4fb966115c5c1ca2a6;hpb=2910db1364914c0ab98a0f80250cc39137821577;p=r2c2.git diff --git a/source/libr2c2/vehicletype.cpp b/source/libr2c2/vehicletype.cpp index 973070c..854308c 100644 --- a/source/libr2c2/vehicletype.cpp +++ b/source/libr2c2/vehicletype.cpp @@ -1,4 +1,6 @@ #include +#include +#include #include #include "vehicletype.h" @@ -120,6 +122,13 @@ VehicleType::Loader::Loader(VehicleType &vt): add("width", &Loader::width); } +void VehicleType::Loader::finish() +{ + obj.shape = new Geometry::TransformedShape( + Geometry::Box(obj.length, obj.width, obj.height), + Transform::translation(Vector(0, 0, obj.height/2))); +} + void VehicleType::Loader::axle() { Axle axl;