X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fbogie.cpp;h=8e99ceb0d9a6bd7fa5350382d8be75a65083eb7d;hb=8b7d4054b05002d82338775ac9b4ee764a8560e4;hp=a36fc9b773c8fb9374b164ffc148c5beb3875ab2;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/3d/bogie.cpp b/source/3d/bogie.cpp index a36fc9b..8e99ceb 100644 --- a/source/3d/bogie.cpp +++ b/source/3d/bogie.cpp @@ -28,7 +28,7 @@ void Bogie3D::setup_render(Msp::GL::Renderer &renderer, const GL::Tag &) const 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;