X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2F3d%2Fbogie.cpp;fp=source%2F3d%2Fbogie.cpp;h=8e99ceb0d9a6bd7fa5350382d8be75a65083eb7d;hb=2910db1364914c0ab98a0f80250cc39137821577;hp=a36fc9b773c8fb9374b164ffc148c5beb3875ab2;hpb=3e60e64dc914badcd3ead3e6c4a5c3f08204cebe;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;