X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Faxle.cpp;h=c9f7a7023995c45eccfc4863c0257db6119feaf8;hb=8b7d4054b05002d82338775ac9b4ee764a8560e4;hp=5123106e5c805f8736292d7996ec47d7f97080c6;hpb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;p=r2c2.git diff --git a/source/3d/axle.cpp b/source/3d/axle.cpp index 5123106..c9f7a70 100644 --- a/source/3d/axle.cpp +++ b/source/3d/axle.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #include #include #include "axle.h" @@ -16,10 +9,10 @@ using namespace Msp; namespace R2C2 { Axle3D::Axle3D(const Vehicle3D &v, unsigned a): - GL::ObjectInstance(*v.get_type().get_axle_object(a)), + GL::ObjectInstance(*v.get_type().get_fixed_axle_object(a)), vehicle(v.get_vehicle()), bogie(0), - axle(vehicle.get_axle(a)) + axle(vehicle.get_fixed_axle(a)) { } Axle3D::Axle3D(const Vehicle3D &v, unsigned b, unsigned a): @@ -41,9 +34,9 @@ void Axle3D::setup_render(GL::Renderer &renderer, const GL::Tag &) const { GL::Matrix matrix; - const Point &pos = vehicle.get_position(); + const Vector &pos = vehicle.get_position(); matrix.translate(pos.x, pos.y, pos.z); - matrix.rotate(vehicle.get_direction(), 0, 0, 1); + matrix.rotate(vehicle.get_rotation(), 0, 0, 1); if(bogie) {