X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fbogie.cpp;h=8e99ceb0d9a6bd7fa5350382d8be75a65083eb7d;hb=8b7d4054b05002d82338775ac9b4ee764a8560e4;hp=234bd88a403559b795db56f86ae655064ef31296;hpb=895f5a36ee5a4fcba95ad88b7a197bf61f1f501d;p=r2c2.git diff --git a/source/3d/bogie.cpp b/source/3d/bogie.cpp index 234bd88..8e99ceb 100644 --- a/source/3d/bogie.cpp +++ b/source/3d/bogie.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 "bogie.h" @@ -33,9 +26,9 @@ void Bogie3D::setup_render(Msp::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); matrix.translate(bogie.type->position, 0, 0); float dir = bogie.direction;